This commit is contained in:
Florian Kellermann
2022-05-09 14:38:08 +02:00
152 changed files with 30985 additions and 1505 deletions

View File

@@ -9,4 +9,11 @@ SECRET_KEY=
# bot credentials
BOT_EMAIL=
BOT_PASSWORD=
BOT_PASSWORD=
# urls
WEBSITE_URL=
API_URL=
# timezone
TZ=Europe/Berlin

View File

@@ -3,12 +3,13 @@
Aktienbot telegram bot
## Development
1. Create virtual environment `python -m venv venv env/Scripts/activate`
2. Install requirements `pip install -r telegram_bot/requirements.txt`
3. Set environment variables (see list below)
1. Create virtual environment `python -m venv venv`
2. Launch venv: `.\venv\Scripts\activate`
3. Install requirements `pip install -r telegram_bot/requirements.txt`
4. Set environment variables (see list below)
1. Use `.env`-file in `api` directory like `.env.example`
2. Or set variables using `export` or `set` commands. (Windows `set`, Linux `export`)
4. Run api `python telegram_bot/bot.py`
5. Run api `python telegram_bot/bot.py`
## Environment variables
```
@@ -30,4 +31,4 @@ docker run -d \
--restart unless-stopped \
registry.flokaiser.com/aktienbot/bot:latest
```
or load environment variables from file by using `--env-file <filename>`
or load environment variables from file by using `--env-file <filename>`