From 19891b29a7d7743e675d36b679aadea639ac6d2b Mon Sep 17 00:00:00 2001 From: Konrad Date: Fri, 27 Sep 2019 18:37:17 +0200 Subject: [PATCH] changed info command to help --- HSMensaW_botA.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HSMensaW_botA.py b/HSMensaW_botA.py index 4bfb66e..6a129b0 100644 --- a/HSMensaW_botA.py +++ b/HSMensaW_botA.py @@ -100,12 +100,12 @@ class HSMensaW(telepot.aio.helper.ChatHandler): await send_essen(chat_id) await send_status("Essen versendet für Chat %s (ID: %i)" % (chat, chat_id)) + elif text.startswith("/help"): + await send_message(bot_obj=bot, chat_id=chat_id, msg=info_str, parse_mode="markdown") + elif text.startswith("/status") and chat_id in config_ids: await send_message(bot_obj=bot, chat_id=chat_id, msg=status, parse_mode="markdown") - elif text.startswith("/info"): - await send_message(bot_obj=bot, chat_id=chat_id, msg=info_str, parse_mode="markdown") - elif text.startswith("/logging") and chat_id in config_ids: if text.endswith("on") or text.endswith("1") or text.lower().endswith("true"): logging_enabled = True