diff --git a/bot.py b/bot.py index ce2518d..d496bd6 100644 --- a/bot.py +++ b/bot.py @@ -144,9 +144,13 @@ with open('users.json', 'r') as f: MessageLoop(bot, on_chat).run_as_thread() print("Started! Service is available.") - +count = 0 while True: time.sleep(1) + count += 1 + if count == 5: + bot.getMe() + count = 0 # backup users_backup = {}