From 3ecdd42092c3cda948ca3a8664929ff0351388ff Mon Sep 17 00:00:00 2001 From: PinLin Date: Sun, 27 Aug 2017 18:16:48 +0800 Subject: [PATCH] show help message when offline --- bot.py | 3 +-- interface.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index 6865c66..1604c2e 100644 --- a/bot.py +++ b/bot.py @@ -81,8 +81,7 @@ def on_chat(msg): elif chat_type == 'private': if command[0] == '/help' or command[0] == '幫助📚': - if user.check_online(chat_id, msg['message_id']) == True: - user.help_you() + user.help_you() elif command[0] == '/password' or command[0] == '改密碼💱': if user.check_online(chat_id, msg['message_id']) == True: diff --git a/interface.py b/interface.py index 577382d..32d7b89 100644 --- a/interface.py +++ b/interface.py @@ -200,8 +200,7 @@ class kuser: "[https://github.com/PinLin/kcoj_bot]\n\n", parse_mode='Markdown', reply_markup=ReplyKeyboardMarkup(keyboard=[ - ["首頁🏠"], - ["登出🚪", "改密碼💱", "幫助📚"] + ["首頁🏠"] ], resize_keyboard=True) if not self.status == '第一次用' else ReplyKeyboardRemove()) def upload_answer(self):