CodeMan is a Discord bot to manage Slippi connect codes for SSBM.
First make sure gradle is installed on your system.
Then you can build it with:
gradle shadowjar
If gradle is too old on your system you can use the
gradlew
script instead (orgradle.bat
if you run Windows).
To use it you have to create a .env
file at the root of the project containing those env vars :
CODEMAN_DB_URI
to a mongodb database access url.CODEMAN_PROD_TOKEN
to a discord bot token.CODEMAN_DEV_TOKEN
(optional) to a test bot token.CODEMAN_EXEC_MODE
to prod or dev
Then you can run it with:
gradle run
To run it inside docker you need to install docker and then:
To create your container:
gradle docker
To start your container:
gradle dockerRun
To stop your container:
gradle dockerStop
Use
sudo
before those commands if you get a permission error.
We only accept pull requests on the dev branch which has autodeployement on the dev bot.
If your change is huge please open an issue first.