made function static, initialized datum variable

Signed-off-by: klux2 <k.lux.gm@gmail.com>
This commit is contained in:
klux2 2019-05-08 18:35:18 +02:00
parent 3ea6070d5c
commit a3ce417523

View file

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