From 5d02860e76c9f596d401c9169bd333f9de326488 Mon Sep 17 00:00:00 2001 From: angerstoner Date: Sat, 31 Mar 2018 01:03:25 +0200 Subject: [PATCH] added help --- schneiderbot.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/schneiderbot.py b/schneiderbot.py index 1118296..9b3698f 100644 --- a/schneiderbot.py +++ b/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,11 +141,9 @@ 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.") - return + else: + update.message.reply_text("Falscher Aufruf! RTFM und versuchs nochmal.") + return today = datetime.datetime.now().date().weekday() + 1 today = 2