Skip to content

Commit 260e95f

Browse files
fix: reduce anti_spam message threshold from 100 to 10 for improved spam detection
1 parent 85dff03 commit 260e95f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ async def anti_spam(message, bot):
14591459
guild_id = message.guild.id
14601460
now = t.time()
14611461
window = 60 # seconds
1462-
threshold = 100 # messages per minute
1462+
threshold = 10 # messages per minute
14631463
owner = await bot.fetch_user(bot.owner_id)
14641464

14651465
# Initialize tracking

0 commit comments

Comments
 (0)