Merge branch 'H3cJP:main' into main
This commit is contained in:
commit
8c5a16ebf2
@ -6,4 +6,6 @@ Here is an example image of the most simple main python script to run a discord
|
||||
|
||||

|
||||
|
||||
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`).
|
||||
|
||||
7
main.py
7
main.py
@ -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 '')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user