New code update

Same functionality, less code
This commit is contained in:
H3cJP 2022-04-14 02:03:29 +02:00 committed by GitHub
parent efdf82c0c7
commit f3b1ac1afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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-token>')
bot.run('<bot-token>') # Change <bot-token> with the bot token (do not remove the '')