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:
|
except BaseException:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if data["data"]["name"] == username:
|
||||||
|
return
|
||||||
|
|
||||||
if data["type"] == "files":
|
if data["type"] == "files":
|
||||||
dta = data.get("data")
|
dta = data.get("data")
|
||||||
|
|
||||||
|
@ -250,9 +253,6 @@ async def on_message(ws, message):
|
||||||
if blocked():
|
if blocked():
|
||||||
return
|
return
|
||||||
|
|
||||||
if data["data"]["name"] == username:
|
|
||||||
return
|
|
||||||
|
|
||||||
text = data["data"]["text"].strip()
|
text = data["data"]["text"].strip()
|
||||||
|
|
||||||
if not text.startswith(prefix):
|
if not text.startswith(prefix):
|
||||||
|
|
Loading…
Reference in New Issue