Explorar o código

Removed badwords

TheHamkerCat %!s(int64=5) %!d(string=hai) anos
pai
achega
73eaea5e8a
Modificáronse 1 ficheiros con 0 adicións e 13 borrados
  1. 0 13
      wbb/modules/misc.py

+ 0 - 13
wbb/modules/misc.py

@@ -3,7 +3,6 @@ import string
 import requests
 from pyrogram import filters
 from pyrogram.types import Message
-from wbb.modules.badwords import listOfBadWords as badWords
 from googletrans import Translator
 from cryptography.fernet import Fernet
 from wbb import app, FERNET_ENCRYPTION_KEY
@@ -141,18 +140,6 @@ async def weather(_, message: Message):
     data = r.text
     await message.reply_text(f"`{data}`")
 
-# Abuse Filter
-
-
-@app.on_message(filters.all)
-async def badwordsfilter2(_, message):
-    badMsg = message.text.split(' ')
-    for badWord in badMsg:
-        if badWord in badWords:
-            await message.delete()
-            await message.reply_text(f"NoU {badWord}")
- 
-
 # Translate