Giter Site home page Giter Site logo

jager's Introduction

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.

jager's People

Contributors

alvierahman90 avatar euab avatar tonk1e avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.