A simple python bot which will post pinned messages that users with a specific role can edit and delete using reactions. Editing is done via direct messaging with the bot.
If you don't know how to set up an environment to run this you can download and use Docker.
- Clone this reposity to your machine
- Create an application on the Discord Dev Portal and give it a name.
- You should now be on the 'General Information' page, copy the 'Application ID' and paste it into your bot.py file. Replace the XX's after 'bot_id'.
- Use the dev portal sidebar menu to go to 'Bot' and tick 'Server Members Intent' and 'Message Content Intent' then save changes.
- On the same tab of the dev portal click 'Reset Token'. Copy the token it generated and paste it into your bot.py file. Replace the XX's after 'TOKEN'. Save the changes to your bot.py file.
- Use the dev portal sidebar menu to go to 'Installation' and under 'Guild Install' add 'bot' and in the new 'Permissions' box that pops up add 'Send Messages' then click 'Save Changes'.
Now where it says 'Install Link' copy the link and open it in a browser. This will take you through the process of adding the bot to your Discord server. - You're now ready to run the python file. If you're comfortable doing that you can stop reading. If not then using a Docker container is the easiest way. So if you haven't already installed Docker, do so now and start Docker running on your machine. You don't need to make a Docker account, you can skip the sign-in.