Browse Source

show Linuxmensa text for lmensa

master
Angerstoner 6 years ago
parent
commit
f21a28a91c
  1. 6
      mensa.py
  2. 4
      schneiderbot.py

6
mensa.py

@ -22,6 +22,7 @@ WEEKDAYS = {
MENSA_URL = {
"zentral": "goe1",
"turm": "goe2",
"linux": "goe2",
"nord": "goe3",
"italia": "goe4",
"fasthochschule": "goe5"
@ -31,6 +32,7 @@ MENSA_NAME = {
"zentral": "Zentralmensa",
"nord": "Nordmensa",
"turm": "Turmmensa",
"linux": "Linuxmensa",
"italia": "Mensa Italia",
"fasthochschule": "Bistro Fasthochschule"
}
@ -68,8 +70,8 @@ MODES = {
}
def lmensa(bot, update):
mensa(bot, update, ["turm"])
def linux_mensa(bot, update):
mensa(bot, update, ["linux"])
def mensa(bot, update, args):

4
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, lmensa
from mensa import mensa, linux_mensa
# Enable logging
@ -190,7 +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("lmensa", linux_mensa))
dp.add_handler(CommandHandler("sudo", sudo, pass_args=True))
dp.add_handler(CommandHandler("cat", cat))
dp.add_handler(CommandHandler("dog", dog))

Loading…
Cancel
Save