Configuration & Usage - Willsr71/Jarvis GitHub Wiki

Usage

  1. Download the jar from https://ci.noxal.net/job/Jarvis/ or compile it
  2. Create a config directory
  3. Create jarvis.json in the config directory
  4. Paste in the example config file and modify it appropriately
  5. Run the command java -jar jarvis.jar

Config File

{
  "discord": {
    "token": "a98s7ng987wt98c3834fvn98.c2345c.987asfdfpo8yn9op978ty07bntj",
    "owners": [
      "112587845968912384"
    ],
    "statusMessageInterval": 60,
    "statusMessages": [
      "SyntaxError",
      "NullPointerException",
      "InterruptedException",
      "401 Unauthorized",
      "403 Forbidden",
      "404 Not Found",
      "406 Unacceptable",
      "410 Gone",
      "418 I'm a teapot",
      "503 Servers on Fire"
    ],
    "pinEmotes": [
      "\uD83D\uDC4C",
      "\uD83D\uDCCC",
      "\uD83D\uDCCD"
    ]
  },
  "sql": {
    "host": "db.example.com",
    "database": "database",
    "user": "user",
    "password": "password"
  },
  "debug": false
}
Field Description
discord - token Discord Auth Token. You can acquire this by going to discordapp.com/developers/applications/me
discord - owners Numerical ids of the owners of the bot
discord - statusMessageInterval Interval in seconds to wait before picking a new status message
discord - statusMessages Messages used as the "Playing" status of the bot
discord - pinEmotes Emotes able to be used to autopin messages (SmashBot module)
sql - host Host of the MySQL database
sql - database Database to use
sql - user User to use
sql - password Password to use
debug Whether to show debug messages