lunarflu HF staff commited on
Commit
d5cd473
β€’
1 Parent(s): a17d6ca

exclude #admin channel from spam warnings

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -104,7 +104,8 @@ async def on_message(message):
104
  # warning for 5+
105
  channel = message.channel
106
  if spam_count == false_positive_threshold:
107
- await channel.send(f"{message.author.mention}, you may be posting too quickly! Please slow down a bit πŸ€—")
 
108
 
109
  var1 = message.created_at
110
  var2 = user_cooldowns[message.author.id]['timestamp']
 
104
  # warning for 5+
105
  channel = message.channel
106
  if spam_count == false_positive_threshold:
107
+ if channel.id != 996580741121065091: # admin channel excluded due to how automod messages are categorized by the discord bot
108
+ await channel.send(f"{message.author.mention}, you may be posting too quickly! Please slow down a bit πŸ€—")
109
 
110
  var1 = message.created_at
111
  var2 = user_cooldowns[message.author.id]['timestamp']