From c962954f03d609f761d59b061c854bd2235b9877 Mon Sep 17 00:00:00 2001 From: Javi3rV <74859199+Javi3rV@users.noreply.github.com> Date: Sun, 26 Dec 2021 16:00:23 +0100 Subject: [PATCH] Update AntiScam.py --- AntiScam.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AntiScam.py b/AntiScam.py index d29b6f0..be94f13 100644 --- a/AntiScam.py +++ b/AntiScam.py @@ -10,7 +10,7 @@ async def AntiScam(message, bot, whitelist, muted_role, verified_role, logs_chan global message_content, last_message, last_message_content, spam_counter message_content = f'{message.author.id}: {message.content}' message_content = message_content.replace("'", "`") - + mentions = message.raw_mentions # AntiScam-System if message_content == last_message_content and message.content != '' and message.author.id not in whitelist: spam_counter += 1 @@ -20,7 +20,7 @@ async def AntiScam(message, bot, whitelist, muted_role, verified_role, logs_chan last_message_content = message_content spam_counter = 0 - if len(message.mentions) > 10 and message.author.id not in whitelist: + if len(mentions) > 10 and message.author.id not in whitelist: await message.delete() spam_counter = 2 @@ -33,4 +33,4 @@ async def AntiScam(message, bot, whitelist, muted_role, verified_role, logs_chan await message.author.remove_roles(verified) channel = bot.get_channel(logs_channel) await channel.send(f'USUARIO MUTEADO: {message_content}') - await bot.process_commands(message) \ No newline at end of file + await bot.process_commands(message)