christopher commited on
Commit
0dfd403
·
verified ·
1 Parent(s): 70a5666

Add strings to forbidden_strings

Browse files

Message targeted:

```
We have collaborated with OPENSEA on a new free mint. Users in this server can participate.

You can be selected, please participate in CLAIM as soon as possible. some claim might require gas!
```

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ async def on_message(message):
64
  """Antispam"""
65
  #Detecting certain unwanted strings
66
  try:
67
- forbidden_strings = ["@everyone", "@here", "discord.gg", "discord.com/invite", "discord.com", "discord-premium"]
68
  if any(string.lower() in message.content.lower() for string in forbidden_strings):
69
  ignored_role_ids = [897381378172264449, 897376942817419265] #admins, huggingfolks
70
  if any(role.id in ignored_role_ids for role in message.author.roles):
 
64
  """Antispam"""
65
  #Detecting certain unwanted strings
66
  try:
67
+ forbidden_strings = ["@everyone", "@here", "discord.gg", "discord.com/invite", "discord.com", "discord-premium", "opensea", "claim", "mint"]
68
  if any(string.lower() in message.content.lower() for string in forbidden_strings):
69
  ignored_role_ids = [897381378172264449, 897376942817419265] #admins, huggingfolks
70
  if any(role.id in ignored_role_ids for role in message.author.roles):