This commit is contained in:
Auric Vente 2024-04-20 13:03:11 -06:00
parent bf26702639
commit c38e571ceb
1 changed files with 7 additions and 7 deletions

14
main.py
View File

@ -226,15 +226,15 @@ async def on_message(ws, message):
except BaseException: except BaseException:
return return
if data["data"]["name"] == username: dta = data.get("data")
if not dta:
return
if dta.get("name") == username:
return return
if data["type"] == "files": if data["type"] == "files":
dta = data.get("data")
if not dta:
return
files = dta.get("files") files = dta.get("files")
if not files: if not files:
@ -253,7 +253,7 @@ async def on_message(ws, message):
if blocked(): if blocked():
return return
text = data["data"]["text"].strip() text = dta["text"].strip()
if not text.startswith(prefix): if not text.startswith(prefix):
return return