SoulofSukuna commited on
Commit
1bf5e03
·
verified ·
1 Parent(s): 8eb8ef1

Update code2.py

Browse files
Files changed (1) hide show
  1. code2.py +4 -2
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", "gbh"]
33
 
34
 
35
  @app.on_message(filters.text)
36
  async def check_blacklist(client, message):
37
  if message.chat.id == -1001141878146:
38
- return
 
 
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