Hosting
You can use our docker image or do manual stuff setting the bot up.
Docker
Use the docker compose file in the docker directory.
Normal hosting
You will need a PostgreSQL database and Java 18 or higher installed already.
Detailed setup guide for non docker users.
We provide a bash script for setting up all requirements for the reputation bot. We do not install any databases or java for you.
Once the setup is complete you can simply execute the start.sh to start the bot in a screen called repbot
.
Simple Setup
wget -q --no-cache https://gist.githubusercontent.com/RainbowDashLabs/20d7ad959b524056a406aeb6ee53b4e2/raw/setup.sh && chmod +x setup.sh && ./setup.sh
Manual setup
Execute the commands from this gist by hand.
Configuration
After the first start the bot will create a configuration file.
config/config.json
- Create a bot account with message and guild members intent.
- Enter your bot token
- Adjust the database login credentials
- Enter your user id to the bot owners
config/log4j2.xml
- Create a private channel with a webhook.
- Paste the webhook url into the verbose webhook appender url field
- You can create additional webhooks for the two more log levels.
Managing
The bot can be managed by commands located under the bot slash command, which will be only available on the bot guild defined in the config file.
upgrade
-> Upgrade the bot on the latest stable version (Not supported when using docker)restart
-> Restarts the bot processshutdown
-> Stops the bot and ends the loop.stats
-> Shows stats about bot usage