This Python script allows you to delete your own messages in Discord
- Clone or download this repository.
- Install the required dependencies by running the following command:
pip install discord.py==1.7.3 requests asyncio
- Run the script.
- The script will start monitoring your Discord channels.
- To trigger the message deletion, send a message that starts with the specified prefix followed by the command you set during configuration.
- The script will then start deleting your messages in the same channel where the trigger message was sent.
token
: Your Discord token.prefix
: The prefix for the command that triggers message deletion.command
: The command that triggers message deletion.
- Make sure to keep your Discord token secure and do not share it publicly.
- By default, there's no cooldown between message deletions. You can enable a cooldown by uncommenting the line with
await asyncio.sleep(3)
. - Be cautious when using this script