self-reconnecting Database Connection (less prone to crashing)

This commit is contained in:
Remy Moll
2021-10-07 12:11:00 +02:00
parent a86ac99f7d
commit b5bd9f262a
4 changed files with 33 additions and 47 deletions

View File

@@ -62,5 +62,7 @@ class ChatBot():
def start(self):
self.sub_modules = {"clock" : self.commands.clock.Clock(self.db, self.modules["clock"], self.api_art)}
self.add_commands()
self.telegram.start_polling()
self.telegram.start_polling(
poll_interval=0.2,
)
# self.telegram.idle()