Skip to content

How to run the bot

Duncan Sterken edited this page Nov 10, 2017 · 5 revisions

How to setup?

Replace the X.X.X with the latest version

Download the latest release here: Releases You need the skybot-X.X.X-all.jar

Execute the following command

java -jar skybot-X.X.X-all.jar

The bot will create a file named config.json.

Edit this file with your settings

Needed entries:

{
  "discord": {
    "token": "<insert your discord token here>",
    "prefix": "/",
    "totalShards": 1
  },
  "use_database": false,
  "sql": {
    "host": "",
    "username": "",
    "password": "",
    "database": ""
  },
  "apis" : {
    "googl" : "",
    "thecatapi": "",
    "wolframalpha": ""
  }
}

Go here and add a new application. After that click on Create a Bot User and copy the token and replace it in config-template.json.

In the above example you would replace <insert your discord token here> with the generated token by Discord.

After that rename config-template.json to config.json.

Then rerun

java -jar skybot-X.X.X-all.jar
Clone this wiki locally