Spaces:
Build error
Build error
Update code2.py
Browse files
code2.py
CHANGED
|
@@ -29,13 +29,15 @@ app = Client(
|
|
| 29 |
logger.info("Initialized Pyrogram client 1")
|
| 30 |
|
| 31 |
# Define the list of blacklisted words
|
| 32 |
-
blacklist = ["counterfeit", "meth", "shard", "heroin", "
|
| 33 |
|
| 34 |
|
| 35 |
@app.on_message(filters.text)
|
| 36 |
async def check_blacklist(client, message):
|
| 37 |
if message.chat.id == -1001141878146:
|
| 38 |
-
|
|
|
|
|
|
|
| 39 |
if any(
|
| 40 |
re.search(rf"\b{re.escape(word)}\b", message.text, re.IGNORECASE)
|
| 41 |
for word in blacklist
|
|
|
|
| 29 |
logger.info("Initialized Pyrogram client 1")
|
| 30 |
|
| 31 |
# Define the list of blacklisted words
|
| 32 |
+
blacklist = ["counterfeit", "meth", "shard", "heroin", "ghb", "fanta", "anyone", "bud", "yes", "admin", "cartel", "circuit"]
|
| 33 |
|
| 34 |
|
| 35 |
@app.on_message(filters.text)
|
| 36 |
async def check_blacklist(client, message):
|
| 37 |
if message.chat.id == -1001141878146:
|
| 38 |
+
blacklist = ["counterfeit", "meth", "shard", "heroin", "ghb", "fanta"]
|
| 39 |
+
else:
|
| 40 |
+
blacklist = ["counterfeit", "meth", "shard", "heroin", "ghb", "fanta", "anyone", "bud", "yes", "admin", "cartel", "circuit"]
|
| 41 |
if any(
|
| 42 |
re.search(rf"\b{re.escape(word)}\b", message.text, re.IGNORECASE)
|
| 43 |
for word in blacklist
|