We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c186a7 commit 941c404Copy full SHA for 941c404
utils.py
@@ -1466,11 +1466,17 @@ async def anti_spam(message, bot):
1466
if guild_id not in guild_message_counts:
1467
guild_message_counts[guild_id] = 0
1468
guild_message_timestamps[guild_id] = now
1469
+ await owner.send(
1470
+ f"Started monitoring guild '{message.guild.name}' (ID: {guild_id}) for message spam."
1471
+ )
1472
1473
# Reset count if window has passed
1474
if now - guild_message_timestamps[guild_id] > window:
1475
1476
1477
1478
+ f"Reset message count for guild '{message.guild.name}' (ID: {guild_id})."
1479
1480
1481
guild_message_counts[guild_id] += 1
1482
0 commit comments