This is was an extremely simple bot to react to any message posted in a specified channel with thumbs up/down emoji, to enable a rudimentary feedback mechanism. It will also notify moderators of popular items of feedback.
For HWSUK, the functionality of this bot has been rolled into Unity as a cog.
On Ubuntu, clone the repo, then:
sudo apt install python3 python3-venv python3-virtualenv
venv env
source env/bin/activate
pip3 install -r requirements.txt
Then run the bot with the following environment variables set:
Name | Purpose |
---|---|
DISCORD_REACTION_CHANNEL_ID | The channel ID to look for messages in. |
DISCORD_MOD_CHANNEL_ID | The channel to send feedback notifications in. If not specified, assumes the same value as DISCORD_REACTION_CHANNEL_ID . |
DISCORD_REACTION_THRESHOLD | The number of upvotes to wait for before sending a feedback notification. If unset, defaults to 5 upvotes. |
DISCORD_CLIENT_TOKEN | The token for the bot's user. |
DISCORD_APPEAR_INVISIBLE | Optional, if set with any value the bot will appear offline. |
The instructions can be adapted for any other Linux distro for local testing.
There are no commands, just message the channel ID specified in DISCORD_CHANNEL_ID
and it will react to the message.