In order to run the program, you'll need to generate a JSON file which outlines the commands you'd like to automate. This document outlines the required format of the JSON file.
It should contain 2 parent levels key called character_name and commands.
{
"character_name": "Kalius The Bard",
"commands": [
<list-of-command-objects>
]
}The name of your character
A list of command objects. See below for format.
A command object is a JSON object which specifies the details of the command to be automated. It has the following format:
{
"name": "Attack with dagger",
"num_dice": 1,
"num_dice_sides": 20,
"modifier": 5
}- This would be translated into the dice maiden command
!roll 1d5 +5. - If advantage is specified, it would be
!roll 2d20 + 5 d1 - If disadvantage is specified, it would be
!roll 2d20 + 5 kl1
Name of your character
Number of dice to be rolled
Number from 1 to 100.
The amount to add or remove from the dice roll. The following are examples of accepted values
50-5
Notice that the sign is required if value is negative.