Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Add strings to forbidden_strings
Browse filesMessage 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!
```
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):
|