A simple discord bot that allows a team to anonymously submit ideas
- Install python 3.11 or later
- Rename
config.yml.example
toconfig.yml
- Get a bot token from here. And put it into the
token
section of the yml file. - Set up postgres 13 or later and create a user for the bot. Then put those log in credentials in
config.yml
. - Run
pip install -r requirements.txt
- Run
python3 main.py
-
Run
/
to see available slash commands for the bot.To get set up on your server users with administrator permissions should:
- Add roles of the users that will be able to submit ideas to the list of approved roles for the
send
command. - Run
/channel set <channel>
to set an output channel, make sure its a private channel that only the whitelisted users can see!
- Add roles of the users that will be able to submit ideas to the list of approved roles for the
-
If you are a whitelisted user and want to submit an idea, you can do so by doing
/send title:<your message title> message:<your message>
in the server.- A confirmation check will be displayed (ephemeral, so invisible to anyone but the user.)
-
You can react with a 👍 if you want to increase the priority of a topic.
-
Users with administrator permissions can close topics by using
/close topic:<topic number> outcome:<Accepted/Denied> reason:<reason>
They can choose to close a topic with "Accepted" or "Denied". Fundamentally these work the same, this is just for visual effect.
- PhazonicRidley for the original source
- FrozenChen for help modernizing the code