From f3b1ac1afc131fd4fe9aa310f129d949c1c6435e Mon Sep 17 00:00:00 2001 From: H3cJP <62990101+H3cJP@users.noreply.github.com> Date: Thu, 14 Apr 2022 02:03:29 +0200 Subject: [PATCH] New code update Same functionality, less code --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 8d51ba0..c000207 100644 --- a/main.py +++ b/main.py @@ -7,8 +7,8 @@ logs_channel = None # Here you can add the ID of the channel where the logs will bot = commands.Bot(command_prefix='>') bot.remove_command('help') # Remove this line if you want to use the help command. -@bot.listen() +@bot.event() async def on_message(message): await AntiScam(message, bot = bot, whitelist = whitelist, muted_role='Muted', verified_role='Verified', logs_channel=logs_channel) # Here you can change the names of the roles. -bot.run('') +bot.run('') # Change with the bot token (do not remove the '')