Disclaimer: This project is intended for educational and personal use only. Do not use it for any illegal purposes or in a production environment.
If you like this project, don't forget to leave a star.๐
Donations are warmly welcomed no matter how small and thank you very much. ๐
- Bitcoin (BTC) -
1Dbwq9EP8YpF3SrLgag2EQwGASMSGLADbh
- Ethereum (ERC20) -
0x22258ea591966e830199d27dea7c542f31ed5dc5
- Binance Smart Chain (BEP20) -
0x22258ea591966e830199d27dea7c542f31ed5dc5
- Solana (SOL) -
yYYXsiVTzsvfvsMnBxfxSZEWTGytjAViE2ojf3hbLeF
- Deletes all text and voice channels on the server.
- Deletes all roles except the default @everyone role.
- Easy setup via
config.json
.
git clone https://github.com/AnikBeris/Auto-Discord-Cleaner.git
cd Auto-Discord-Cleaner
pip install -r requirements.txt
python bot.py
- Go to the Discord Developer Portal.
- Click "New Application", enter a name, and save it.
- Go to "Bot" -> "Add Bot" -> Confirm.
- Copy the bot's Token (you will need this later).
- Enable Privileged Intents (Presence, Server Members, and Message Content).
๐จ Error: PrivilegedIntentsRequired (Insufficient Permissions)
- Go to the Discord Developer Portal.
- Select your application (bot).
- Navigate to the "Bot" tab in the left menu.
- Find the "Privileged Gateway Intents" section and enable:
4.1. โ "PRESENCE INTENT" (optional)
4.2. โ "SERVER MEMBERS INTENT" (required)
4.3. โ "MESSAGE CONTENT INTENT" (if message analysis is used) - Click "Save Changes".
- Stop the bot (Ctrl + C in the terminal).
- Restart the bot:
python bot+roles.py
- Enable Developer Mode in Discord (Settings -> Advanced -> Developer Mode).
- Right-click on the server name and select "Copy ID". This is your
GUILD_ID
.
- Go to OAuth2 -> "URL Generator".
- Select bot and applications.commands.
- In the Bot Permissions section, select:
- Manage Roles, Manage Channels, Read Messages, Send Messages, Connect, Speak. - Copy the generated link and paste it into your browser.
- Select the server and authorize the bot.
- Open
config.json
and add your TOKEN and GUILD_ID. - Start the bot:
python bot.py
SUCCESS! The bot will start cleaning channels and roles!
This project is licensed under the MIT License.
For detailed documentation, check out the English README or ะ ัััะบะธะน README.