made function static, initialized datum variable
Signed-off-by: klux2 <k.lux.gm@gmail.com>
This commit is contained in:
parent
3ea6070d5c
commit
a3ce417523
1 changed files with 3 additions and 1 deletions
|
@ -39,10 +39,12 @@ info_str = "*Mensa-Bot der Hochschule Mittweida (beta)*\nDieser Bot versendet je
|
||||||
status = ""
|
status = ""
|
||||||
essen = []
|
essen = []
|
||||||
var = True
|
var = True
|
||||||
|
datum = None
|
||||||
|
|
||||||
|
|
||||||
class HSMensaW(telepot.aio.helper.ChatHandler):
|
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
|
global config, essen, status, var
|
||||||
|
|
||||||
content_type, chat_type, chat_id = telepot.glance(msg)
|
content_type, chat_type, chat_id = telepot.glance(msg)
|
||||||
|
|
Loading…
Reference in a new issue