Skip to content

Instantly share code, notes, and snippets.

@anden3
Created September 30, 2021 22:03
Show Gist options
  • Select an option

  • Save anden3/ef3c3be4a5ad6d35fff1bfb40252e621 to your computer and use it in GitHub Desktop.

Select an option

Save anden3/ef3c3be4a5ad6d35fff1bfb40252e621 to your computer and use it in GitHub Desktop.
JSON Schema for HoloBot Configuration
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "HoloBot Configuration Schema",
"description": "Schema for the configuration of https://github.com/anden3/holo-bot.",
"x-taplo-info": {
"authors": ["anden3 (https://github.com/anden3)"],
"version": "0.1.0",
"patterns": [".*holobot.toml$"]
},
"type": "object",
"properties": {
"main": {
"$ref": "#/definitions/Main"
}
},
"definitions": {
"Main": {
"title": "Main",
"description": "Main configuration settings.",
"type": "object",
"required": ["discord_token", "database"],
"properties": {
"discord_token": {
"description": "The bot token used to connect to Discord.",
"type": "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment