# Talk occ commands ## talk:bot:install Install a new bot on the server ### Usage * `talk:bot:install [--output [OUTPUT]] [--no-setup] [-f|--feature FEATURE] [--] []` | Arguments | Description | Is required | Is array | Default | |---|---|---|---|---| | `name` | The name under which the messages will be posted (min. 1 char, max. 64 chars) | yes | no | *Required* | | `secret` | Secret used to validate API calls (min. 40 chars, max. 128 chars) | yes | no | *Required* | | `url` | Webhook endpoint to post messages to (max. 4000 chars) | yes | no | *Required* | | `description` | Optional description shown in the admin settings (max. 4000 chars) | no | no | `NULL` | | Options | Description | Accept value | Is value required | Is multiple | Default | |---|---|---|---|---|---| | `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | `'plain'` | | `--no-setup` | Prevent moderators from setting up the bot in a conversation | no | no | no | `false` | | `--feature\|-f` | Specify the list of features for the bot - webhook: The bot receives posted chat messages as webhooks - response: The bot can post messages and reactions as a response - none: When all features should be disabled for the bot | yes | yes | yes | *Required* | ## talk:bot:list List all installed bots of the server or a conversation ### Usage * `talk:bot:list [--output [OUTPUT]] [--] []` | Arguments | Description | Is required | Is array | Default | |---|---|---|---|---| | `token` | Conversation token to limit the bot list for | no | no | `NULL` | | Options | Description | Accept value | Is value required | Is multiple | Default | |---|---|---|---|---|---| | `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | `'plain'` | ## talk:bot:remove Remove a bot from a conversation ### Usage * `talk:bot:remove [--output [OUTPUT]] [--] [...]` | Arguments | Description | Is required | Is array | Default | |---|---|---|---|---| | `bot-id` | The ID of the bot to remove in a conversation | yes | no | *Required* | | `token` | Conversation tokens to remove bot up for | no | yes | `array ()` | | Options | Description | Accept value | Is value required | Is multiple | Default | |---|---|---|---|---|---| | `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | `'plain'` | ## talk:bot:state Change the state or feature list for a bot ### Usage * `talk:bot:state [--output [OUTPUT]] [-f|--feature FEATURE] [--] ` | Arguments | Description | Is required | Is array | Default | |---|---|---|---|---| | `bot-id` | Bot ID to change the state for | yes | no | *Required* | | `state` | New state for the bot (0 = disabled, 1 = enabled, 2 = no setup via GUI) | yes | no | *Required* | | Options | Description | Accept value | Is value required | Is multiple | Default | |---|---|---|---|---|---| | `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | `'plain'` | | `--feature\|-f` | Specify the list of features for the bot - webhook: The bot receives posted chat messages as webhooks - response: The bot can post messages and reactions as a response - none: When all features should be disabled for the bot | yes | yes | yes | *Required* | ## talk:bot:setup Add a bot to a conversation ### Usage * `talk:bot:setup [--output [OUTPUT]] [--] [...]` | Arguments | Description | Is required | Is array | Default | |---|---|---|---|---| | `bot-id` | The ID of the bot to set up in a conversation | yes | no | *Required* | | `token` | Conversation tokens to set the bot up for | no | yes | `array ()` | | Options | Description | Accept value | Is value required | Is multiple | Default | |---|---|---|---|---|---| | `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | `'plain'` | ## talk:bot:uninstall Uninstall a bot from the server ### Usage * `talk:bot:uninstall [--output [OUTPUT]] [--url URL] [--] []` | Arguments | Description | Is required | Is array | Default | |---|---|---|---|---| | `id` | The ID of the bot | no | no | `NULL` | | Options | Description | Accept value | Is value required | Is multiple | Default | |---|---|---|---|---|---| | `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | `'plain'` | | `--url` | The URL of the bot (required when no ID is given, ignored otherwise) | yes | yes | no | *Required* | ## talk:command:add Add a new command ### Usage * `talk:command:add [--output [OUTPUT]] [--]