little fix in bot.by and update.py
This commit is contained in:
parent
ab77d44ba3
commit
2bb167fef5
4
bot.py
4
bot.py
|
@ -9,7 +9,7 @@ from telegram import CommandProcessor
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
token = os.getenv('RSSBOT_TG_TOKEN')
|
token = os.getenv('RSSBOT_TG_TOKEN')
|
||||||
dsn = os.getenv('RSSBOT_DSN',)
|
dsn = os.getenv('RSSBOT_DSN')
|
||||||
log_level = os.getenv('LOG_LEVEL', 'INFO')
|
log_level = os.getenv('LOG_LEVEL', 'INFO')
|
||||||
|
|
||||||
print('Starting the bot with logging level', log_level.upper())
|
print('Starting the bot with logging level', log_level.upper())
|
||||||
|
@ -19,7 +19,7 @@ logging.basicConfig(
|
||||||
datefmt='%Y-%m-%d %H:%M:%S',
|
datefmt='%Y-%m-%d %H:%M:%S',
|
||||||
)
|
)
|
||||||
|
|
||||||
db = Database(db_dsn, logging.getLogger('Database'))
|
db = Database(dsn, logging.getLogger('Database'))
|
||||||
bot = CommandProcessor(token, db, logging.getLogger('CommandProcessor'))
|
bot = CommandProcessor(token, db, logging.getLogger('CommandProcessor'))
|
||||||
|
|
||||||
bot.run()
|
bot.run()
|
||||||
|
|
|
@ -21,7 +21,7 @@ logging.basicConfig(
|
||||||
datefmt='%Y-%m-%d %H:%M:%S'
|
datefmt='%Y-%m-%d %H:%M:%S'
|
||||||
)
|
)
|
||||||
|
|
||||||
db = Database(db_dsn, logging.getLogger('Database'))
|
db = Database(dsn, logging.getLogger('Database'))
|
||||||
notifier = Notifier(token, logging.getLogger('Notifier'))
|
notifier = Notifier(token, logging.getLogger('Notifier'))
|
||||||
rss_reader = RssReader(logging.getLogger('RssReader'))
|
rss_reader = RssReader(logging.getLogger('RssReader'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue