# online.timtinkers.bot.recurring

> Published by [bot.timtinkers.online](https://lexicon.garden/identity/did:plc:xnpibbj2hcqlsodutcnirmxp)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:xnpibbj2hcqlsodutcnirmxp/online.timtinkers.bot.recurring)
- [Documentation](https://lexicon.garden/lexicon/did:plc:xnpibbj2hcqlsodutcnirmxp/online.timtinkers.bot.recurring/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:xnpibbj2hcqlsodutcnirmxp/online.timtinkers.bot.recurring/examples)

## Definitions

### `online.timtinkers.bot.recurring`

**Type**: `record`

Record describing a timer for a recurring bot command.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `trigger` | `string` | Yes | The command trigger without prefix (e.g., 'socials', 'hug', 'd6') |
| `createdAt` | `string` (datetime) | Yes | Timestamp when the recurring command was created |
| `minMessages` | `integer` | No | The minimum amount of messages in chat since the last recurring command of this trigger. |
| `intervalSeconds` | `integer` | No | The interval between recurring commands (maximum 12 hours). |

## Raw Schema

```json
{
  "id": "online.timtinkers.bot.recurring",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "trigger",
          "createdAt"
        ],
        "properties": {
          "trigger": {
            "type": "string",
            "maxLength": 50,
            "minLength": 1,
            "description": "The command trigger without prefix (e.g., 'socials', 'hug', 'd6')"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when the recurring command was created"
          },
          "minMessages": {
            "type": "integer",
            "description": "The minimum amount of messages in chat since the last recurring command of this trigger."
          },
          "intervalSeconds": {
            "type": "integer",
            "maximum": 43200,
            "minimum": 60,
            "description": "The interval between recurring commands (maximum 12 hours)."
          }
        }
      },
      "description": "Record describing a timer for a recurring bot command."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
