NOTE 📝:
This is a fully customizable discord.py bot with a clear command.
- Clear Command Clear a specific amount of messages in a channel.
- Clear logs The bot automatically sends a log message in the channel you defined.
To use this bot, follow these steps:
- set up a bot on https://discord.com/developers/applications
- get your bot token and put the token in the token.txt
- Invite the bot to your Discord server
- Run the bot by putting your token in the
"token.txt"
, no other characters
- Description: Delete messages in a channel.
- Usage:
.clear
,[aliases]
aliases
: You can use".delete"
,".purge"
too.
- Permissions Required: manage messages
Important
The warning message for invalid numbers only shows up if you put no number after the .clear; .delete; .purge; else an error appears im about to fix this error soon.
-
Clone the repository:
git clone https://github.com/TrapstarJannik/Discord-Clear-Bot.git
cd Discord-Clear-Bot
-
Run the bot:
python main.py
Important
You need to put your token in the token.txt
or you will get an error!
- The bot's prefix is set to
.
by default. You can change it in themain.py
file. - add your discord bot token in the
token.txt
by replacing the first line.