This commit is contained in:
Auric Vente 2024-04-20 13:09:10 -06:00
parent c38e571ceb
commit 02d12bc506
1 changed files with 12 additions and 9 deletions

View File

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