Mods
This commit is contained in:
parent
0254aa773b
commit
bf26702639
6
main.py
6
main.py
|
@ -226,6 +226,9 @@ async def on_message(ws, message):
|
|||
except BaseException:
|
||||
return
|
||||
|
||||
if data["data"]["name"] == username:
|
||||
return
|
||||
|
||||
if data["type"] == "files":
|
||||
dta = data.get("data")
|
||||
|
||||
|
@ -250,9 +253,6 @@ async def on_message(ws, message):
|
|||
if blocked():
|
||||
return
|
||||
|
||||
if data["data"]["name"] == username:
|
||||
return
|
||||
|
||||
text = data["data"]["text"].strip()
|
||||
|
||||
if not text.startswith(prefix):
|
||||
|
|
Loading…
Reference in New Issue