Skip to content

euab/jager

Repository files navigation

Jäger V2

The development branch for the next major version of the Jäger Discord bot.

Travis (.org) branch Codacy branch grade Discord invite link GitHub

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.

Task list

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

Building your very own Jager

⚠ Read before attempting

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

Build-a-bot

Prerequisites

  • JDK
  • Gradle
  • An IDE such as IntelliJ (if you are editing code)

Steps for building

There may be extra steps in building the bot if any errors occur.
  1. Make sure that all prerequisites are installed and running. You can check Java by opening a terminal and typing
$ java -version
  1. 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
  1. Change your working directory to the root folder
$ cd jager
  1. Checkout to the v2 branch.
$ git checkout v2
  1. Open a terminal in the root folder of the project and run:
$ gradlew shadowJar
  1. 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.

  1. 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"
  }
}
  1. 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.