Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-04-20 11:50:08 +02:00
Родитель d43f67ec2e
Коммит e595271a19
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7076EA9751AACDDA
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -26,7 +26,6 @@ Parameter | Description
`{ROOM}` | The token of the room the command was used in
`{USER}` | ID of the user that called the command
`{ARGUMENTS}` | Everything the user write after the actual command
`{ARGUMENTS_DOUBLEQUOTE_ESCAPED}` | … but with double quotes `"` escaped.
## Example
@ -62,7 +61,7 @@ It should return a useful description, the first line is also displayed in a lis
Make sure to use the absolute path to your script when registering the command:
```
./occ talk:command:add calculator calculator "/path/to/calc.sh \"{ARGUMENTS_DOUBLEQUOTE_ESCAPED}\" {ROOM} {USER}" 1 3
./occ talk:command:add calculator calculator "/path/to/calc.sh {ARGUMENTS} {ROOM} {USER}" 1 3
```
### Explanation
@ -76,7 +75,7 @@ Make sure to use the absolute path to your script when registering the command:
* Executed shell command:
```
/path/to/calc.sh "1 + 2 + 3 + \"hello\"" '4tf349j' 'my user id'
/path/to/calc.sh '1 + 2 + 3 + "hello"' '4tf349j' 'my user id'
```
## Aliases