You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
611 B
20 lines
611 B
3 years ago
|
messages = {
|
||
|
'dialog': [
|
||
|
"dialog",
|
||
|
"--clear",
|
||
|
'--backtitle "{{ title|default("Message") }}',
|
||
|
'--msgbox "{{ args[0] }}" {{ height|default("15") }} {{ width|default("100") }};'
|
||
|
'clear;'
|
||
|
],
|
||
|
'echo': 'echo "{{ args[0] }}"',
|
||
|
'slack': [
|
||
|
"curl -X POST -H 'Content-type: application/json' --data",
|
||
|
'{"text": "{{ args[0] }}"}',
|
||
|
"{{ url }}",
|
||
|
],
|
||
|
'twist': [
|
||
|
"curl -X POST -H 'Content-type: application/json' --data",
|
||
|
'{"content": "{{ args[0] }}", "title": "{{ title|default("Notice") }}"}',
|
||
|
"{{ url }}",
|
||
|
],
|
||
|
}
|