diff --git a/HSMensaW_botA.py b/HSMensaW_botA.py index 1222bff..4a8fa83 100644 --- a/HSMensaW_botA.py +++ b/HSMensaW_botA.py @@ -61,6 +61,18 @@ info_str = "*Inoffizieller Mensa-Bot der Hochschule Mittweida*\nDieser Bot verse "verändert werden.\n\n_Haftungsausschluss: Dieser Bot steht in keiner Verbindung mit der Hochschule " \ "Mittweida oder dem Studentenwerk Freiberg. Alle Angaben ohne Gewähr._\n\nGrafik bereitgestellt von [" \ "vecteezy.com](https://de.vecteezy.com) " + +var_corona_msg_de = """Bitte halten Sie sich an die AHA-Regeln in der Mensa und achten sie auf die +vorgegebenen Markierung und Hinweise. Den aktuellen Corona-Status an der HS Mittweida +können Sie an der [Corona-Ampel](https://www.hs-mittweida.de/) oder im [Corona-Newsticker] +(https://www.hs-mittweida.de/index.php?id=247957) der Hochschule einsehen. Nur *ZUSAMMEN* +bewirken wir etwas und bewätigen die Pandemie. Bleiben Sie gesund.""" + +var_corona_msg_eng = """Please follow the AHA rules in the cafeteria and pay attention to the given markings +and instructions. You can see the current Corona status of HS Mittweida at the [Corona +traffic light](https://www.hs-mittweida.de/) or in the [Corona news ticker] +(https://www.hs-mittweida.de/index.php?id=247957) of the university. Only *TOGETHER* we +make a difference and overcome the pandemic. Stay healthy.""" status = "" essen = [] essen_eng = [] @@ -232,12 +244,14 @@ async def send_essen(chat_id: int, sprache: Language = Language.GERMAN) -> None: nachricht = "Speiseplan am %s:\n" % format_date(datum, format="full", locale="de_DE") for i in essen: nachricht += "- " + str(i).replace(".", ",") + "\n\n" + nachricht += var_corona_msg_de await send_message(bot_obj=bot, chat_id=chat_id, msg=nachricht, parse_mode="markdown") if sprache == Language.ENGLISH or sprache == Language.GERMAN_ENGLISH: nachricht = "Menu on %s:\n" % format_date(datum, format="full", locale="en") for i in essen_eng: nachricht += "- " + str(i) + "\n\n" + nachricht += var_corona_msg_eng await send_message(bot_obj=bot, chat_id=chat_id, msg=nachricht, parse_mode="markdown") @@ -425,6 +439,8 @@ def process_json(d): return d +print(var_corona_msg_de) +print(var_corona_msg_eng) sys.stdout = open("out.log", "a") sys.stderr = open("err.log", "a") message_log = open("msg.log", "a")