{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "account": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "handle": {
          "maxLength": 253,
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "bskyPosts": {
      "description": "Announces new Bluesky posts from these accounts.",
      "properties": {
        "accounts": {
          "items": {
            "ref": "#account",
            "type": "ref"
          },
          "maxLength": 20,
          "type": "array"
        },
        "enabled": {
          "type": "boolean"
        },
        "includeReplies": {
          "type": "boolean"
        },
        "message": {
          "maxGraphemes": 300,
          "maxLength": 900,
          "type": "string"
        },
        "onlineOnly": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "combo": {
      "description": "Announces emote combos.",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "message": {
          "maxGraphemes": 300,
          "maxLength": 900,
          "type": "string"
        },
        "minCombo": {
          "maximum": 100,
          "minimum": 2,
          "type": "integer"
        },
        "onlineOnly": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "eightBall": {
      "properties": {
        "answers": {
          "items": {
            "maxGraphemes": 200,
            "maxLength": 600,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "enabled": {
          "type": "boolean"
        },
        "template": {
          "maxGraphemes": 300,
          "maxLength": 900,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Settings for one of Superbot's chat modules on the account owner's channel. The record key names the module and matches the settings type: eightball, combo, pyramid, bskyposts or votekick.",
      "key": "any",
      "record": {
        "properties": {
          "settings": {
            "refs": [
              "#eightBall",
              "#combo",
              "#pyramid",
              "#bskyPosts",
              "#voteKick"
            ],
            "type": "union"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "settings"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "pyramid": {
      "description": "Announces emote pyramids.",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "message": {
          "maxGraphemes": 300,
          "maxLength": 900,
          "type": "string"
        },
        "minWidth": {
          "maximum": 20,
          "minimum": 2,
          "type": "integer"
        },
        "onlineOnly": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "voteKick": {
      "description": "Lets chat vote to time someone out. Durations are in seconds.",
      "properties": {
        "cooldown": {
          "maximum": 1209600,
          "minimum": 0,
          "type": "integer"
        },
        "duration": {
          "maximum": 600,
          "minimum": 10,
          "type": "integer"
        },
        "enabled": {
          "type": "boolean"
        },
        "failMessage": {
          "maxGraphemes": 300,
          "maxLength": 900,
          "type": "string"
        },
        "passMessage": {
          "maxGraphemes": 300,
          "maxLength": 900,
          "type": "string"
        },
        "startMessage": {
          "maxGraphemes": 300,
          "maxLength": 900,
          "type": "string"
        },
        "timeout": {
          "maximum": 1209600,
          "minimum": 0,
          "type": "integer"
        },
        "votesRequired": {
          "maximum": 500,
          "minimum": 2,
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "id": "gay.evil.superbot.module",
  "lexicon": 1
}
