-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkbc.yml
74 lines (55 loc) · 2.8 KB
/
kbc.yml
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
# This is the configuration file of KookBC.
# You can configure many options here.
### ------ BOT CONFIGURATION ------ ###
# Tips: The values of the items in this section will be used instead of the values from command line.
# The values from the command line will be used only if the appropriate value is not provided here.
# The token that will be used for Bot.
token: ""
### ---- END BOT CONFIGURATION ---- ###
# The listener mode for the Bot. "websocket" and "webhook" are allowed. (Case insensitive)
# Invalid value will cause the client stops.
mode: "websocket"
## ---- START WEBHOOK CONFIGURATION ----
# The webhook server port. KookBC will start a simple HTTP server on the provided port for listening events.
webhook-port: 8080
# The encrypt key of Webhook. Used for decrypt the message from Kook Open Platform.
# If this is null or empty, we won't decrypt the message and regard it as non-encrypted message.
webhook-encrypt-key: ""
# Verify token of Webhook. Used for checking the request, make sure the event message is sent from Kook.
# Invalid value will cause the client stops.
webhook-verify-token: ""
# The route path of Webhook.
# The full Callback URL format is: https://yourdomain.com/{webhook_route}
# e.g. "kookbc-webhook" -> https://example.io/kookbc-webhook
webhook-route: "kookbc-webhook"
## ---- END WEBHOOK CONFIGURATION ----
# The UUID of your Bot in the BotMarket. (see https://www.botmarket.cn)
# If you provided non-null value and it is a valid value, KookBC will schedule a task for pinging BotMarket.
botmarket-uuid: ""
# If true, the data from Websocket server will be compressed.
# If you want to save the Internet flow, turn it to true.
# Tips: this item can't affect the Webhook mode.
compress: true
# If true, when the internal commands that can't be used for users got call from user events,
# the executor will simply return.
# If false, a message will be sent to the user that sent the request.
ignore-remote-call-invisible-internal-command: true
# If true, when the console executed a command, the content of command line
# and execute time will be stored in the ".console_history" file in KookBC folder.
save-console-history: true
# UNSAFE! Are you sure? Are you really need this?
# If true, the event handler will ignore the order of events (SN).
# But we will do our best to ensure that what has been dealt with will not be dealt with again.
ignore-sn-order: false
# Turn this option to true to enable the update checker!
check-update: true
# If true, we will add two lines about KookBC's introduction and the repository link to command help.
# Please don't set it to false, it won't impact the performance!
allow-help-ad: true
# Whether to register internal commands.
internal-commands:
stop: true
help: true
plugins: true
# Allow command exception feedback to the sender
allow-error-feedback: true