Merge branch 'bot' of https://github.com/WebEngineering2/TelegramAktienBot into bot
This commit is contained in:
@@ -9,4 +9,11 @@ SECRET_KEY=
|
||||
|
||||
# bot credentials
|
||||
BOT_EMAIL=
|
||||
BOT_PASSWORD=
|
||||
BOT_PASSWORD=
|
||||
|
||||
# urls
|
||||
WEBSITE_URL=
|
||||
API_URL=
|
||||
|
||||
# timezone
|
||||
TZ=Europe/Berlin
|
@@ -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>`
|
||||
|
Reference in New Issue
Block a user