mirror of
https://github.com/alterware/aw-bot.git
synced 2025-12-10 11:37:50 +00:00
chore: patch yet another spam (Discord is failing)
This commit is contained in:
@@ -449,7 +449,7 @@ async def handle_message(message, bot):
|
||||
await message.delete()
|
||||
return
|
||||
|
||||
if len(message.embeds) > 2:
|
||||
if len(message.embeds) > 2 or len(message.attachments) > 3:
|
||||
member = message.guild.get_member(message.author.id)
|
||||
await timeout_member(member, timedelta(minutes=5), "Too many embeds")
|
||||
await message.delete()
|
||||
|
||||
Reference in New Issue
Block a user