From 29ffae8648f93423a23c5a2cfca74a7d535080c3 Mon Sep 17 00:00:00 2001 From: PinLin Date: Wed, 23 Aug 2017 18:24:20 +0800 Subject: [PATCH] fix restart function --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 22f27db..093c988 100644 --- a/bot.py +++ b/bot.py @@ -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