Browse Source

added help

quotes
angerstoner 7 years ago
parent
commit
5d02860e76
  1. 17
      schneiderbot.py

17
schneiderbot.py

@ -112,7 +112,16 @@ Mhmm, lecker. Guten Appetit!""")
def help(bot, update):
"""Send a message when the command /help is issued."""
update.message.reply_text('Help!')
update.message.reply_text("""Commands:
*Mensa*:
/mensa _mensa_ - prints filtered list of meals for _mensa_ (if no _mensa_ given, zentralmensa is used)
/mensa _mensa_ full - prints full list of meals for _mensa_ (if no _mensa_ given, zentralmensa is used)
*Fun*:
/megie - random Axel Stoll qoute
/manta - random Opel Manta joke
/help - this help text""", parse_mode=ParseMode.MARKDOWN)
def magie(bot, update):
"""MAGIEEEEEE"""
@ -132,10 +141,8 @@ def mensa(bot, update, args):
which = args[0]
elif arg in MODES:
categories = MODES[arg]
if which not in MENSA_NAME:
update.message.reply_text("Diese Mensa gibt es nicht! RTFM und versuchs nochmal.")
else:
update.message.reply_text("Falscher Aufruf! RTFM und versuchs nochmal.")
return
today = datetime.datetime.now().date().weekday() + 1

Loading…
Cancel
Save