changed info command to help
This commit is contained in:
parent
2f28bf2d05
commit
19891b29a7
1 changed files with 3 additions and 3 deletions
|
@ -100,12 +100,12 @@ class HSMensaW(telepot.aio.helper.ChatHandler):
|
||||||
await send_essen(chat_id)
|
await send_essen(chat_id)
|
||||||
await send_status("Essen versendet für Chat %s (ID: %i)" % (chat, 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:
|
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")
|
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:
|
elif text.startswith("/logging") and chat_id in config_ids:
|
||||||
if text.endswith("on") or text.endswith("1") or text.lower().endswith("true"):
|
if text.endswith("on") or text.endswith("1") or text.lower().endswith("true"):
|
||||||
logging_enabled = True
|
logging_enabled = True
|
||||||
|
|
Loading…
Reference in a new issue