Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
exclude #admin channel from spam warnings
Browse files
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 |
-
|
|
|
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']
|