A Discord bot to manage slow mode on channels.
Running locally:
$ SB_TOKEN=<your discord token> ./gradlew run
.env
files are supported and an option for running locally.
For example if your .env
file looks as below, running can simply be ./gradlew run
.
SB_TOKEN=<your discord token>
SB_LOG_LEVEL=debug
SB_PREFIX=sbtest!
Code formatting:
$ ./gradlew spotlessApply
Emoji log or tsktsk should be used for commit messages.
To build and run the Docker container locally:
$ docker build . -t slothbot:latest
$ docker run -e SB_TOKEN=<your discord token> slothbot:latest
SB_TOKEN
[required] the Discord bot token to run underSB_PREFIX
[defaults to sb!] the prefix for the bot the listen toSB_LOG_LEVEL
[defaults to info] logging level
Data is stored within the container under the /var/data
folder.
A volume or mount should be configured for this location to persist data between runs.