Python Discord Bot
This project will always be a work in progress. I'll update it as my needs for its functionality change. For now it can delete messages in a server that you have control over. Most of the code was taken directly from docs at: https://discordpy.readthedocs.io/en/latest/api.html Some docs on rate limits: https://discord.com/developers/docs/topics/rate-limits You need to first create a discord developer application at https://discord.com/developers/applications
- add a bot and copy token / paste into your program
- in the OAuth2 tab select bot under Scopes and then admin permissions under Bot Permissions
- copy and paste the link in a new tab and add the bot to your desired server
- run the program and you will see the bot is online in the server
- type this to delete 5 messages:
- .purge 5
- It is indiscriminate and will delete every post
