diff --git a/mensa.py b/mensa.py index 955ac64..88af155 100644 --- a/mensa.py +++ b/mensa.py @@ -68,6 +68,10 @@ MODES = { } +def lmensa(bot, update): + mensa(bot, update, "turm") + + def mensa(bot, update, args): if update.message.chat_id in DISABLED_GROUPS: return diff --git a/schneiderbot.py b/schneiderbot.py index 90e39a2..254b386 100755 --- a/schneiderbot.py +++ b/schneiderbot.py @@ -11,7 +11,7 @@ from web_requests import send_coding_love_gif, send_wiki_how_article from reddit import wrong_dog, hamster, reddit, reddit_img, toggle_four_twenty, four_twenty, cat, dog from schneiderbot_twitter import toggle_pepito_for_group, check_pepito_and_post_auto, check_pepito_and_post_manually from db import Db -from mensa import mensa +from mensa import mensa, lmensa # Enable logging @@ -190,6 +190,7 @@ def init_commands(dp): dp.add_handler(CommandHandler("manta", manta)) dp.add_handler(CommandHandler("goodlife", goodlife)) dp.add_handler(CommandHandler("mensa", mensa, pass_args=True)) + dp.add_handler(CommandHandler("lmensa", lmensa)) dp.add_handler(CommandHandler("sudo", sudo, pass_args=True)) dp.add_handler(CommandHandler("cat", cat)) dp.add_handler(CommandHandler("dog", dog))