Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielburger1337/steam-idler
Simple Steam Idler
https://github.com/danielburger1337/steam-idler
idle-game python steam
Last synced: 28 days ago
JSON representation
Simple Steam Idler
- Host: GitHub
- URL: https://github.com/danielburger1337/steam-idler
- Owner: danielburger1337
- License: mit
- Created: 2023-02-04T21:57:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T15:55:49.000Z (almost 2 years ago)
- Last Synced: 2024-11-09T16:12:15.420Z (3 months ago)
- Topics: idle-game, python, steam
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Steam Idler
The script will automatically ask you for your credentials and optional 2FA code (provided by [ValvePython/steam](https://github.com/ValvePython/steam)).
```sh
pip install -r requirements.txtpython3 main.py
```---
## How it works
This script works by having a commander (STEAM_COMMAND_USER) sending chat messages to the currently signed in user
with commands that the bot will follow. Valid commands are:- **.start APP_ID**
This command starts the specified app id
- **.stop APP_ID**
This command stops the specified app id```sh
export STEAM_COMMAND_USER="your_steam_id"
```## Login
To automatically login, you have to define your username and password as environment variables.
The script will automatically use these credentials and will only ask you for your 2FA token (if needed).```sh
export STEAM_USERNAME="your_username"
export STEAM_PASSWORD="your_password"
```After you have successfully logged in for the first time, the 2FA-sentry created by steam is automatically saved to the `.steam-sentry` directory and future executions of the script will use it. Please note that steam guard users are always prompted for their 2FA code.
## Docker Usage
Running this script in docker allows us to basically create a background service (so that you can close the terminal without the script execution stopping).
```sh
# Start the script with an interactive shell
docker-compose run --rm --build idler# To kill the process when you want to
docker-compose kill
```## Automatic chat reply
Because this script is intended to be run headless (i.e. on a server), the script will automatically reply to all received chat messages with a simple message that lets your friends know that you are currently not available.
A copy of that message is also send to the command user.