lunarflu HF staff christopher commited on
Commit
d2af64a
·
verified ·
1 Parent(s): 70a5666

Add strings to forbidden_strings (#6)

Browse files

- Add strings to forbidden_strings (0dfd40302b31a5b047289152a412ecf552b0c275)


Co-authored-by: Christopher Akiki <[email protected]>

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):