Record representing a chat bot command. Commands can be simple (static response), parameterized (template-based with arguments), or RNG-based (random number generation).
tid
Timestamp-based ID
Properties
commandType
ref
#commandType
Required
The type of command (simple, parameterized, or rng)
createdAt
string
datetime
Required
An RFC 3339 formatted timestamp.
description
string
Optional
Optional help text describing what the command does
maxLength: 300 bytesparameters
array
of
ref
#parameter
Optional
Parameter definitions (required for parameterizedCommand type)
maxLength: 10 itemsminLength: 1 itemsresponse
string
Optional
Static response text (required for simpleCommand type)
maxLength: 3000 bytesmaxGraphemes: 300 graphemesresponseTemplate
string
Optional
Template with {paramName} placeholders (required for parameterizedCommand type)
maxLength: 3000 bytesmaxGraphemes: 300 graphemesrngMax
integer
Optional
Maximum value for RNG (inclusive, required for rngCommand type)
rngMin
integer
Optional
Minimum value for RNG (inclusive, required for rngCommand type)
rngParameter
ref
#parameter
Optional
Optional parameter definition for rngCommand type (e.g., target user for 'stinky' command)
rngTemplate
string
Optional
Template with {result} placeholder for RNG result and optional {paramName} for input (required for rngCommand type)
maxLength: 3000 bytesmaxGraphemes: 300 graphemestrigger
string
Required
The command trigger without prefix (e.g., 'socials', 'hug', 'd6')
maxLength: 50 bytesminLength: 1 bytesView raw schema
{
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"trigger",
"commandType",
"createdAt"
],
"properties": {
"rngMax": {
"type": "integer",
"description": "Maximum value for RNG (inclusive, required for rngCommand type)"
},
"rngMin": {
"type": "integer",
"description": "Minimum value for RNG (inclusive, required for rngCommand type)"
},
"trigger": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "The command trigger without prefix (e.g., 'socials', 'hug', 'd6')"
},
"response": {
"type": "string",
"maxLength": 3000,
"description": "Static response text (required for simpleCommand type)",
"maxGraphemes": 300
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"parameters": {
"type": "array",
"items": {
"ref": "#parameter",
"type": "ref"
},
"maxLength": 10,
"minLength": 1,
"description": "Parameter definitions (required for parameterizedCommand type)"
},
"commandType": {
"ref": "#commandType",
"type": "ref",
"description": "The type of command (simple, parameterized, or rng)"
},
"description": {
"type": "string",
"maxLength": 300,
"description": "Optional help text describing what the command does"
},
"rngTemplate": {
"type": "string",
"maxLength": 3000,
"description": "Template with {result} placeholder for RNG result and optional {paramName} for input (required for rngCommand type)",
"maxGraphemes": 300
},
"rngParameter": {
"ref": "#parameter",
"type": "ref",
"description": "Optional parameter definition for rngCommand type (e.g., target user for 'stinky' command)"
},
"responseTemplate": {
"type": "string",
"maxLength": 3000,
"description": "Template with {paramName} placeholders (required for parameterizedCommand type)",
"maxGraphemes": 300
}
}
},
"description": "Record representing a chat bot command. Commands can be simple (static response), parameterized (template-based with arguments), or RNG-based (random number generation)."
}