rename /update to /restart

This commit is contained in:
2017-08-23 22:10:04 +08:00
parent ff31a683b4
commit ef65cfe8b6

2
bot.py
View File

@ -85,7 +85,7 @@ def on_chat(msg):
users[str(from_id)] = user
user.logout_system()
elif command[0] == '/update':
elif command[0] == '/restart':
if str(from_id) in config.ADMIN:
bot.sendMessage(chat_id, "即將更新並重新啟動")
time.sleep(1)