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