-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yaml
92 lines (81 loc) · 2.74 KB
/
config.yaml
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
# global config
debug: false
worker: 4 # number of goroutine to recv update [int]
# bot config
token: ""
proxy: "" # [http:// | socks5://] host:port
listen: ":7777"
skip_duration: 0 # skip expired message, duration in seconds, set to 0 to disable [int]
black_list:
enabled: true
white_list:
enabled: true
restrict:
kill_duration: 300 # restrict duration for command `kill` [second]
fake_ban_max_add: 120 # max add ban time for command `kill` or `fake ban xxx` [second]
rate_limit:
max_token: 20 # token bucket size, must [int]
limit: 0.5 # how many tokens get every second [float64]
cost: 1 # default cost every message [int]
cost_sticker: 3 # cost of every sticker, sticker message use this cost [int]
cost_command: 2 # cost of every command, command message use this cost [int]
# redis config
redis:
addr: "redis:6379"
pass: "csust-bot-redis-password"
key_prefix: "csust-got:"
# message config
message:
links: "NO LINKS"
restrict_bot: "好 的, 我 杀 我 自 己。"
fake_ban_in_cd: ""
hitokoto_not_found: "过去那些零碎的细语并不构成这个世界: 对于你而言,该看,该想,该体会身边那些微小事物的律动。忘了这些话吧。忘了这个功能吧——只今它已然不能给予你更多。而你的未来属于新的旅途: 去欲望、去收获、去爱、去恨。去做只属于你自己的选择,写下只有你深谙个中滋味的诗篇。我们的生命以后可能还会交织之时,但如今,再见辣。"
no_sleep: "睡你麻痹起来嗨!"
boot_failed: "我不愿面对这苦涩的一天……:("
welcome: "Welcome to this group!"
prometheus:
enabled: false
address: "prometheus:9090"
message_query: 'topk(5, sum(rate(bot_message_count{chat_id="##"}[24h])*(24*3600-5)) by (username))'
sticker_query: 'topk(5, sum(rate(bot_message_count{chat_id="##", is_sticker="true"}[24h])*(24*3600-5)) by (username))'
# 原神语音api
genshin_voice:
api_server: "https://api.csu.st"
err_audio_addr: "https://api.csu.st/file/VO_inGame/VO_NPC/NPC_DQ/vo_npc_dq_f_katheryne_01.ogg"
chatgpt:
base_url: ""
key: ""
max_tokens: 1000
temperature: 1
prompt_limit: 500
system_prompt: ""
keep_context: 0
model: ""
retry_nums: 5
retry_interval: 1 # 单位:秒
# meili search
meili:
enabled: false
address: "http://127.0.0.1:7070"
api_key: ""
index_prefix: "csust-got-"
mc:
max_count: 10
github:
enabled: false
token: ""
repo: "csust-got"
owner: ""
branch: "master"
path: "config.yaml"
short_url_prefix: "s.csu.st"
content_filter:
url_filter:
enabled: true
bv2av:
# telegram uids here
enable_user_list:
- 123123123
tw2fx:
enable_user_list:
- 123123123