Tries to redeem list of keys to my Steam account.
If redeeming failed with error that I already own the game, then send it with Telegram bot.
-
Install Python.
-
Install pip.
-
Install required packages.
pip install -r requirements.txt
-
Create Telegram bot.
-
Add bot to Telegram channel.
-
Create .env-file.
- Use .env.example as base.
-
Run script with Steam keys as arguments seperated by space.
python main.py <Steam key> <Steam key 2>
-
Login to Steam account.
Name | Description |
---|---|
TELEGRAM_TOKEN | Token for Telegram bot. |
TELEGRAM_CHAT_ID | ID for Telegram chat to send message to. |
TELEGRAM_MSG_START | Start string for messages. |
python .\main.py XXXXX-XXXXX-XXXXX XXXXX-XXXXX-XXXXX XXXXX-XXXXX-XXXXX XXXXX-XXXXX-XXXXX
Username: <username>
Password:
Enter 2FA code: <2FA code>
Key: XXXXX-XXXXX-XXXXX
Games: ['Valfaris']
Sent to friend!
Key: XXXXX-XXXXX-XXXXX
Games: ['Wheels of Aurelia']
Redeemed!
Key: XXXXX-XXXXX-XXXXX
Games: ['Wildermyth']
Redeemed!
Key: XXXXX-XXXXX-XXXXX
Games: ['XTHRUST']
Redeemed!
Make commands.
Run with make <Command>
.
Command | Description |
---|---|
install_pacman | Install packages with pacman. |
install_requirements | Install requirements with pip. |