@@ -29,6 +29,7 @@ ChatBridge is mainly for custom use of TIS server, especially the bot/command co
29
29
- Discord client
30
30
- Kaiheila client
31
31
- Online command client
32
+ - ...
32
33
33
34
Therefore, for these bot and related clients:
34
35
@@ -50,6 +51,7 @@ ChatBridge 是一个为 TIS 服务器定制使用的工具,尤其是 bot/指
50
51
- Discord 客户端
51
52
- Kaiheila 客户端
52
53
- Online 指令客户端
54
+ - ...
53
55
54
56
因此,对于这些 bot 及相关的客户端:
55
57
@@ -190,7 +192,6 @@ python ChatBridge.pyz cqhttp_bot
190
192
Extra requirements (also listed in ` /chatbridge/impl/cqhttp/requirements.txt ` ):
191
193
192
194
```
193
- websocket>=0.2.1
194
195
websocket-client>=1.2.1
195
196
```
196
197
@@ -217,21 +218,47 @@ Extra configure fields (compared to [CLI client](#cli-client))
217
218
" server_display_name" : " TIS" // The name of the server, used for display in some places
218
219
```
219
220
221
+ ## Client as a Satori client
222
+
223
+ ```
224
+ python ChatBridge.pyz cqhttp_bot
225
+ ```
226
+
227
+ Extra requirements (also listed in ` /chatbridge/impl/satori/requirements.txt ` ):
228
+
229
+ ```
230
+ satori-python>=0.11
231
+ ```
232
+
233
+ Just like the CoolqHttp client, but it uses satori protocol
234
+
235
+ Extra configure fields (compared to [ CLI client] ( #cli-client ) )
236
+
237
+ ``` json5
238
+ " ws_address" : " 127.0.0.1" , // satori server address
239
+ " ws_port" : 5500 , // satori server port
240
+ " ws_path" : " " , // satori server optional path prefix
241
+ " satori_token" : " xxxxx" , // satori access token
242
+ " react_channel_id" : 12345 , // the target channel id (for QQ, it's the group id)
243
+ " chatbridge_message_prefix" : " !!qq" ,
244
+ " client_to_query_stats" : " MyClient1" , // it should be a client as an MCDR plugin, with stats_helper plugin installed in the MCDR
245
+ " client_to_query_online" : " MyClient2" , // a client described in the following section "Client to respond online command"
246
+ " server_display_name" : " TIS" // The name of the server, used for display in some places
247
+ ```
248
+
220
249
## Kaiheila bot client
221
250
222
- ` python ChatBridge.pyz kaiheila_bot `
251
+ ` python ChatBridge.pyz satori_bot `
223
252
224
253
Extra requirements (also listed in ` /chatbridge/impl/kaiheila/requirements.txt ` ):
225
254
226
255
```
227
- khl.py==0.0.10
256
+ khl.py~=0.3.17
228
257
```
229
258
230
259
Extra configure fields (compared to [ CLI client] ( #cli-client ) )
231
260
232
261
``` json5
233
- " client_id" : " " , // kaiheila client id
234
- " client_secret" : " " , // kaiheila client secret
235
262
" token" : " " , // kaiheila token
236
263
" channels_for_command" : [ // a list of channels, public commands can be used here. use string
237
264
" 123400000000000000" ,
0 commit comments