From a3ce417523079c035652a1325b098c009cefd757 Mon Sep 17 00:00:00 2001 From: klux2 Date: Wed, 8 May 2019 18:35:18 +0200 Subject: [PATCH] made function static, initialized datum variable Signed-off-by: klux2 --- HSMensaW_botA.py.BAK | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HSMensaW_botA.py.BAK b/HSMensaW_botA.py.BAK index 2785469..0a0ba79 100644 --- a/HSMensaW_botA.py.BAK +++ b/HSMensaW_botA.py.BAK @@ -39,10 +39,12 @@ info_str = "*Mensa-Bot der Hochschule Mittweida (beta)*\nDieser Bot versendet je status = "" essen = [] var = True +datum = None class HSMensaW(telepot.aio.helper.ChatHandler): - async def on_chat_message(self, msg): + @staticmethod + async def on_chat_message(msg): global config, essen, status, var content_type, chat_type, chat_id = telepot.glance(msg)