Mods
This commit is contained in:
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):
|
||||
|
Reference in New Issue
Block a user