-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
81 lines (80 loc) · 2.08 KB
/
config.yaml
File metadata and controls
81 lines (80 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
token: my_secret
guild_id: ""
commands:
test:
description: my pretty command
response: my lovely response
response_code: 200
url: https://google.com
auth_header_name: Authorization
auth_header_value: "Bearer token"
headers:
- name: X-Forwarded-For
value: somevalue
arguments:
- name: arg1
type: string
description: argument 1
required: true
- name: arg2
type: int
description: argument 2
default: 0
required: false
- name: discord_user_name
type: string
discord: true
data:
user: "{{ .discord_user_name }}"
id: "{{ .arg2 }}"
arg: "{{ .arg1 }}"
short_test:
description: my pretty short command
response: my quick lovely response
url: https://github.com
method: GET
outer:
description: Outer command
subcommand_group:
middle:
description: Inner command group
subcommand:
inner:
description: Most nested command possible
response: Nested subcommand!
url: https://youtube.com
headers:
- name: X-Forwarded-For
value: somevalue
arguments:
- name: arg1
type: string
description: argument 1
required: true
- name: arg2
type: int
description: argument 2
required: false
data:
user: "{{ .arg1 }}"
id: "{{ .arg2 }}"
subcommand:
inner2:
description: Command nested one level deep
response: Single nested subcommand!
url: https://gmail.com
headers:
- name: X-Forwarded-For
value: somevalue
arguments:
- name: arg1
type: string
description: argument 1
required: true
- name: arg2
type: int
description: argument 2
required: false
data:
user: "{{ .arg1 }}"
id: "{{ .arg2 }}"