-
Notifications
You must be signed in to change notification settings - Fork 11
/
conf.json
102 lines (102 loc) · 3.24 KB
/
conf.json
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"listen": [":::12019", "0.0.0.0:12019"],
"task_timeout": 4000,
"workers": 8,
"backlog": 256,
"keep_alive": 5,
"client_timeout": 5000,
"client_shutdown": 5000,
"max_connection_per_worker": 20480,
"max_concurrent_rate_per_worker": 256,
"payload_size_limit": 262144,
"static_root": ".",
"cmds": {
"default": {
"type": "echo",
"echo": "我还不认识这个指令呐!({{WXWORK_ROBOT_CMD}})",
"order": 999,
"hidden": true
},
"": {
"type": "echo",
"echo": "空消息,本群会话ID: {{WXWORK_ROBOT_CHAT_ID}}",
"order": 999,
"hidden": true
},
"(help)|(帮助)|(指令列表)": {
"type": "help",
"description": "help|帮助|指令列表",
"prefix": "### 可用指令列表\r\n",
"order": 0
},
"说\\s*(?P<MSG>[^\\r\\n]+)": {
"type": "echo",
"echo": "{{WXWORK_ROBOT_CMD_MSG}}",
"description": "说**消息内容**",
"order": 2
},
"执行命令\\s*(?P<EXEC>[^\\s]+)\\s*(?P<PARAM>[^\\s]*)": {
"type": "spawn",
"exec": "{{WXWORK_ROBOT_CMD_EXEC}}",
"args": ["{{WXWORK_ROBOT_CMD_PARAM}}"],
"cwd": "",
"env": {
"TEST_ENV": "all env key will be WXWORK_ROBOT_CMD_{NAME IN ENV} or WXWORK_ROBOT_PROJECT_{NAME}"
},
"description": "执行命令**可执行文件路径** ***参数***",
"output_type": "markdown",
"order": 2
}
},
"events": {
"add_to_chat": {
"type": "echo",
"echo": "Hi, 大家好"
},
"enter_chat": {
"type": "echo",
"echo": "Hi, {{WXWORK_ROBOT_MSG_FROM_NAME}}"
}
},
"projects": [{
"name": "test_proj",
"token": "hJqcu3uJ9Tn2gXPmxx2w9kkCkCE2EPYo",
"encodingAESKey": "6qkdMrq68nTKduznJYO1A37W2oEgpkMUvkttRToqhUt",
"env": {
"testURL": "robots.txt"
},
"cmds": {
"http请求": {
"type": "http",
"method": "get",
"url": "https://owent.net/{{WXWORK_ROBOT_PROJECT_TEST_URL}}",
"post": "",
"content_type": "",
"headers": {
"X-TEST": "value"
},
"echo": "已发起HTTP请求,回包内容\r\n{{WXWORK_ROBOT_HTTP_RESPONSE}}",
"case_insensitive": true,
"multi_line": true,
"unicode": true,
"octal": true,
"dot_matches_new_line": false,
"order": 2
},
"访问\\s*(?P<URL>[^\\r\\n]+)": {
"type": "http",
"url": "{{WXWORK_ROBOT_CMD_URL}}",
"post": "",
"echo": "HTTP请求: {{WXWORK_ROBOT_CMD_URL}}\r\n{{WXWORK_ROBOT_HTTP_RESPONSE}}",
"description": "访问**URL地址**",
"order": 2
}
},
"events": {
"delete_from_chat": {
"type": "echo",
"echo": "再见"
}
}
}]
}