project | 5 months ago | ||
src/ main | 5 months ago | ||
.gitignore | 5 months ago | ||
LICENSE.txt | 3 years ago | ||
README.md | 3 years ago | ||
build.sbt | 5 months ago |
$ printf 'include "reference"\n\ndiscordToken = "{INSERT_YOUR_DISCORD_TOKEN}"' > local.conf
(local.conf
is already in gitignore.)$ sbt
to run sbt and setup project~assembly
to compile and assemble jar in watch mode (triggered by source file changes)$ java -Dconfig.file=local.conf -jar target/scala-2.13/GensocBot-{version}.jar
~assembly
to finish building on file change and then restart the step 4src/main/scala/roleassign/RoleAssign.scala
replace textId
, channelId
and assigners
Sequence to match your desired discord channel, roles and text to watch for reactions.assembly
(without the ~
!) to compile the jarfile once.target/scala/2.13/GensocBot-{version}.jar
to your machineapplication.conf
in the same folder as the jarfile and edit as such ``` include "reference"discordToken = "{INSERT_YOUR_DISCORD_BOT_TOKEN_HERE}" ```
java -Dconfig.file=application.conf -jar GensocBot-{version}.jar
.Visit our Discord for help.