nroggendorff commited on
Commit
c9b2075
1 Parent(s): ff69e80

I dont like spam

Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -58,8 +58,9 @@ async def on_message(message):
58
  """Antispam"""
59
  #Detecting certain unwanted strings
60
  try:
61
- forbidden_strings = ["@everyone", "@here", "discord.gg", "discord.com/invite", "discord.com", "discord-premium"]
62
- if any(string.lower() in message.content.lower() for string in forbidden_strings):
 
63
  ignored_role_ids = [897381378172264449, 897376942817419265] #admins, huggingfolks
64
  if any(role.id in ignored_role_ids for role in message.author.roles):
65
  if message.author != lunarflu:
 
58
  """Antispam"""
59
  #Detecting certain unwanted strings
60
  try:
61
+ forbidden_strings = ["@everyone", "@here", "discord.gg", "discord.com/invite", "discord.com", "discord-premium", "opensea"] # im not sure if @everyone or @here will work, similar to how typing @lunarflu will appear as <@811235357663297546>
62
+ forbidden_usernames = ["airdrop"]
63
+ if any(string.lower() in message.content.lower() for string in forbidden_strings) or any(username.lower() in message.author.name.lower() for username in forbidden_usernames):
64
  ignored_role_ids = [897381378172264449, 897376942817419265] #admins, huggingfolks
65
  if any(role.id in ignored_role_ids for role in message.author.roles):
66
  if message.author != lunarflu: