Skip to content

hwsuk/reaction-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HWSUK Feedback Bot THIS BOT IS DEPRECATED - DO NOT USE

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.

Deployment

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.

Usage

There are no commands, just message the channel ID specified in DISCORD_CHANNEL_ID and it will react to the message.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages