summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-04-26 07:58:07 -0300
committerVitor Mattos <vitor@php.rio>2023-04-26 07:58:07 -0300
commit5e52a9dd41c906c54a8bb6c1333184ccbe307677 (patch)
treef241003945cb30e77d008bcdfccc12a9c2bc7ddb /docs
parentbb58b57f9ffb13f0b389637b5f572af193e42650 (diff)
Update documentation
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'docs')
-rw-r--r--docs/occ.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/occ.md b/docs/occ.md
index cbd820e15..03be9f0e0 100644
--- a/docs/occ.md
+++ b/docs/occ.md
@@ -6,7 +6,7 @@ Add a new command
### Usage
-* `talk:command:add <cmd> <name> <script> <response> <enabled>`
+* `talk:command:add [--output [OUTPUT]] [--] <cmd> <name> <script> <response> <enabled>`
| Arguments | Description | Is required | Is array | Default |
|---|---|---|---|---|
@@ -16,6 +16,10 @@ Add a new command
| `response` | Who should see the response: 0 - No one, 1 - User, 2 - All | yes | no | `NULL` |
| `enabled` | Who can use this command: 0 - Disabled, 1 - Moderators, 2 - Users, 3 - Guests | yes | no | `NULL` |
+| Options | Accept value | Is value required | Is multiple | Default |
+|---|---|---|---|---|
+| `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | 'plain'` |
+
## talk:command:add-samples
Adds some sample commands: /wiki, …
@@ -58,7 +62,7 @@ Add a new command
### Usage
-* `talk:command:update <command-id> <cmd> <name> <script> <response> <enabled>`
+* `talk:command:update [--output [OUTPUT]] [--] <command-id> <cmd> <name> <script> <response> <enabled>`
| Arguments | Description | Is required | Is array | Default |
|---|---|---|---|---|
@@ -69,6 +73,10 @@ Add a new command
| `response` | Who should see the response: 0 - No one, 1 - User, 2 - All | yes | no | `NULL` |
| `enabled` | Who can use this command: 0 - Disabled, 1 - Moderators, 2 - Users, 3 - Guests | yes | no | `NULL` |
+| Options | Accept value | Is value required | Is multiple | Default |
+|---|---|---|---|---|
+| `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | 'plain'` |
+
## talk:monitor:calls
Prints a list with conversations that have an active call as well as their participant count