Skip to content

Commit

Permalink
reapply upgrades, remove confusing settings from toml, rename tg token
Browse files Browse the repository at this point in the history
  • Loading branch information
wetterkrank committed Jul 1, 2023
1 parent cf737ec commit 0af9682
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://wetterkrank.github.io/dasbot/

## How to run
- Clone the repo
- Set the env variable `DYNACONF_TOKEN="your_Telegram_bot_token"` (can use .env file)
- Set the env variable `DYNACONF_TELEGRAM_TOKEN="your_Telegram_bot_token"` (can use .env file)

- Create and activate a virtual environment: `python3 -m venv .venv && source ./.venv/bin/activate`
- Install dependencies: `pip install -r requirements.txt`
Expand Down
2 changes: 1 addition & 1 deletion dasbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
if __name__ == '__main__':

# Initialize bot & dispatcher
bot = Bot(token=settings.TOKEN)
bot = Bot(token=settings.TELEGRAM_TOKEN)
dp = Dispatcher(bot)

# /help command handler
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
aiogram>=2.21
aiohttp>=3.8.1
aiogram>=2.25
aiohttp>=3.8.1,<3.9.0
aiounittest>=1.4.2
dynaconf>=3.1.9
marshmallow>=3.17.0
mongomock>=4.1.2
pymongo>=4.2.0
pytz>=2022.1
pytz>=2023.1
watchdog[watchmedo]>=2.1.6
2 changes: 0 additions & 2 deletions settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ db_name = 'dasbot'

[development]
mode = 'polling'
db_address = 'mongodb://127.0.0.1:27017/'
broadcast = false
debug = true

[production]
mode = 'webhook'
db_address = 'mongodb://mongo:27017/'
broadcast = true
debug = false

0 comments on commit 0af9682

Please sign in to comment.