Actually working persistence by overloading a dict

This commit is contained in:
Remy Moll
2021-01-15 16:40:48 +01:00
parent fbba5010a3
commit 5b5bb4b30c
4 changed files with 70 additions and 7 deletions

View File

@@ -65,9 +65,6 @@ class BotFramework():
def react_chats(self):
"""Checks unanswered messages and answers them"""
# HACKY: TODO remove
self.persistence.sync()
# writes persistent variables to file so that they ACTUALLY persist
num = self.telegram.fetch_updates()
for i in range(num):
self.react_command()