{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A timer on the account owner's Streamplace channel. It posts its messages and the responses of its commands in rotation, skipping its turn when chat is quiet.",
      "key": "tid",
      "record": {
        "properties": {
          "activities": {
            "items": {
              "ref": "gay.evil.superbot.defs#activity",
              "type": "ref"
            },
            "maxLength": 50,
            "type": "array"
          },
          "commands": {
            "description": "gay.evil.superbot.command records in the same repo whose responses are rotated through.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "messages": {
            "items": {
              "maxGraphemes": 2000,
              "maxLength": 6000,
              "type": "string"
            },
            "maxLength": 5,
            "type": "array"
          },
          "minLines": {
            "description": "Chat lines needed since the last post.",
            "maximum": 1000,
            "minimum": 0,
            "type": "integer"
          },
          "name": {
            "maxGraphemes": 100,
            "maxLength": 300,
            "type": "string"
          },
          "offlineEnabled": {
            "type": "boolean"
          },
          "offlineInterval": {
            "description": "Minutes.",
            "maximum": 1440,
            "minimum": 1,
            "type": "integer"
          },
          "onlineEnabled": {
            "type": "boolean"
          },
          "onlineInterval": {
            "description": "Minutes.",
            "maximum": 1440,
            "minimum": 1,
            "type": "integer"
          },
          "titleKeywords": {
            "items": {
              "maxGraphemes": 100,
              "maxLength": 300,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "name",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "gay.evil.superbot.timer",
  "lexicon": 1
}
