From a947a985782f253bb15602fa8b52054ef7912206 Mon Sep 17 00:00:00 2001 From: Angerstoner Date: Wed, 30 Jan 2019 12:02:57 +0100 Subject: [PATCH] deactivated mensa for random noise group --- .gitignore | 2 ++ mensa.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 641275b..da3a307 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ token +prod_token +test_token deaths.db # ---> Python diff --git a/mensa.py b/mensa.py index a60d15c..9859438 100644 --- a/mensa.py +++ b/mensa.py @@ -2,6 +2,8 @@ import datetime from telegram import ParseMode import requests +DISABLED_GROUPS = [-1001301570558] + DIETS = { "veggy": "fleischlos", "fleisch": "mit Fleisch", @@ -67,6 +69,8 @@ MODES = { def mensa(bot, update, args): + if update.message.chat_id in DISABLED_GROUPS: + return which = "zentral" filter_categories = MODES["light"] today = datetime.datetime.now().date()