A discord & reddit bot for automating solution submission/display for Zachtronics games.
Currently included:
- Opus Magnum
- SpaceChem
- Shenzhen I/O
-
Set up docker-compose, create a discord bot, create a reddit app, get a github personal access token. Follow respective guides.
-
Run gradle:
./gradlew build
- Run via docker-compose:
version: "3.7"
services:
om-discord-bot:
build: .
container_name: om-discord-bot
environment:
JDA_TOKEN: abc
GIT_USERNAME: def
GIT_ACCESS_TOKEN: ghi
REDDIT_USERNAME: jkl
REDDIT_ACCESS_TOKEN: mno
REDDIT_CLIENT_ID: pqr
REDDIT_PASSWORD: stu
IMGUR_CLIENT_ID: wvx
Alternatively to build .
you can use prebuilt image: f43nd1r/zachtronics-leaderboard-bot:latest
. This makes the gradle build obsolete.
The used github repositories are hardcoded into each leaderboard. You'll need to change those if the supplied github account does not have access to the original ones.