chore:修改toml配置文件位置,增加默认配置文件,修改docs
This commit is contained in:
@@ -1,48 +0,0 @@
|
||||
[database]
|
||||
host = "127.0.0.1"
|
||||
port = 27017
|
||||
name = "MegBot"
|
||||
username = "" # 默认空值
|
||||
password = "" # 默认空值
|
||||
auth_source = "" # 默认空值
|
||||
|
||||
[bot]
|
||||
qq = #填入你的机器人QQ
|
||||
nickname = "麦麦"
|
||||
|
||||
[message]
|
||||
min_text_length = 2 # 与麦麦聊天时麦麦只会回答文本大于等于此数的消息
|
||||
max_context_size = 15 # 麦麦获得的上下文数量,超出数量后自动丢弃
|
||||
emoji_chance = 0.2 # 麦麦使用表情包的概率
|
||||
|
||||
[emoji]
|
||||
check_interval = 120
|
||||
register_interval = 10
|
||||
|
||||
[cq_code]
|
||||
enable_pic_translate = false
|
||||
|
||||
|
||||
[response]
|
||||
api_using = "siliconflow" # 选择大模型API
|
||||
model_r1_probability = 0.8 # 麦麦回答时选择R1模型的概率
|
||||
model_v3_probability = 0.1 # 麦麦回答时选择V3模型的概率
|
||||
model_r1_distill_probability = 0.1 # 麦麦回答时选择R1蒸馏模型的概率
|
||||
|
||||
[others]
|
||||
enable_advance_output = true # 开启后输出更多日志,false关闭true开启
|
||||
|
||||
|
||||
[groups]
|
||||
|
||||
talk_allowed = [
|
||||
#可以回复消息的群
|
||||
]
|
||||
|
||||
talk_frequency_down = [
|
||||
#降低回复频率的群
|
||||
]
|
||||
|
||||
ban_user_id = [
|
||||
#禁止回复消息的QQ号
|
||||
]
|
||||
@@ -107,7 +107,7 @@ class BotConfig:
|
||||
|
||||
return config
|
||||
|
||||
global_config = BotConfig.load_config("./src/plugins/chat/bot_config.toml")
|
||||
global_config = BotConfig.load_config(".bot_config.toml")
|
||||
|
||||
from dotenv import load_dotenv
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
Reference in New Issue
Block a user