fix restart function

This commit is contained in:
2017-08-23 18:24:20 +08:00
parent 91afc539f7
commit 29ffae8648

2
bot.py
View File

@ -87,7 +87,7 @@ def on_chat(msg):
user.logout_system()
elif command[0] == '/restart':
if from_id in config.ADMIN:
if str(from_id) in config.ADMIN:
bot.sendMessage(chat_id, "即將重新啟動")
restart = True