Browse Source

added lmensa alias

master
Angerstoner 5 years ago
parent
commit
623190ffdd
  1. 4
      mensa.py
  2. 3
      schneiderbot.py

4
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

3
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))

Loading…
Cancel
Save