The development branch for the next major version of the Jäger Discord bot.
It is not recommended that you try and host your own instance of this bot. Not only is this branch very unstable and subject to constant updates, but the bot is also built for the environment that it runs in. It will likely fail if you try to run it yourself without experience of JDA and Java.
This is the list of all of the tasks that I intend to implement. Each task will be checked off as they are completed and some tasks may be added or removed during the development process.
- Basic functionality
- Ping command
- General utility and helper commands
- Search commands
- Music player
- Database implementation
- System commands
- Levelling system
- General commands
- Moderation
- AI implementation
- Jager REST API
- Online server dashboard
We don't recommend that you build your own instance of Jager to run. It is not a documented project and most builds here will be bleeding edge and will not be stable. Likely including error-filled code and unfinished features.
I am literally the master of bodging code so the bit above will be the case 80% of the time- JDK
- Gradle
- An IDE such as IntelliJ (if you are editing code)
- Make sure that all prerequisites are installed and running. You can check Java by opening a terminal and typing
$ java -version
- Clone this repository using the command below (you can also fork this repo and clone your own fork).
$ git clone https://github.com/euab/jager.git
- Change your working directory to the root folder
$ cd jager
- Checkout to the
v2
branch.
$ git checkout v2
- Open a terminal in the root folder of the project and run:
$ gradlew shadowJar
- Run the bot using the command below and prepare for the configuration errors and to start having to fill in missing configs.
$ java -jar Jager.jar
The bot will likely crash with a NullPointerException
as it cannot load the configuration file. So you'll have to make
it yourself.
- Change your working directory to the resources directory.
cd src/main/resources
Then make a new file called configuration.json
.
$ echo {} >> configuration.json
You will need to format the JSON file in this manner, otherwise the bot will not work. As you are likely on a command line it would likely be easiest to just Vim into the file but you can use any text editor you like as long as you indent the JSON correctly.
$ vi configuration.json
{
"environment": "production",
"botAuth": {
"token": "YOUR DISCORD TOKEN HERE",
"oauth": "YOUR OAUTH URL HERE",
"activationDelay": "0"
}
}
- Then back out back to the root directory.
$ cd ../../..
Finally run the bot
$ java -jar Jager.jar
You now have a running instance of Jager.