Pārlūkot izejas kodu

Removed badwords

TheHamkerCat 5 gadi atpakaļ
vecāks
revīzija
73eaea5e8a
1 mainītis faili ar 0 papildinājumiem un 13 dzēšanām
  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