From bf26702639a3316ea57f914ad028aa5bc219f9f3 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sat, 20 Apr 2024 13:00:43 -0600 Subject: [PATCH] Mods --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 115d745..0ea88b9 100644 --- a/main.py +++ b/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):