Merge branch 'H3cJP:main' into main

This commit is contained in:
Erik Giovani 2022-06-02 10:57:24 -05:00 committed by GitHub
commit 8c5a16ebf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -6,4 +6,6 @@ Here is an example image of the most simple main python script to run a discord
![main.png](img/main.png)
To run the bot, the PyCord module must be installed (if you have installed pip3, it can be installed with `sudo pip3 install py-cord`)
To run the bot, the PyCord module must be installed (on linux, `pip3 install py-cord`).
If you found any trouble, you can report it at the issues section.
Sometimes if the pip3 command is not detected, it may be that `pip` command is already associated with python3 (check it running the command `pip --version`).

View File

@ -4,11 +4,10 @@ from AntiScam import AntiScam
whitelist = [] # Here you can add the IDs of the users allowed to bypass the AntiScam system.
logs_channel = None # Here you can add the ID of the channel where the logs will be sent.
bot = commands.Bot(command_prefix='>')
bot.remove_command('help') # Remove this line if you want to use the help command.
bot = discord.Bot()
@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 '')