本文将说明配置文件(config.cfg
)中各参数的用途。
刚开始使用的机器人拥有以下默认配置:
[secret]
db_path = mysql+pymysql://
Check_accessKeyId =
Check_accessKeySecret =
web_render =
netease_cloud_music_api_url =
botarcapi_url =
botarcapi_agent =
dc_token =
tg_token =
openai_api_key =
nl2c_model =
curseforge_api_key =
exchange_rate_api_key =
[cfg]
base_superuser = QQ|2596322644
debug = False
cache_path = ./cache/
extra_services = False
db_cache = False
bug_report_url = https://s.wd-ljt.com/botreportbug
donate_url = https://afdian.net/@teahouse
help_url = https://bot.teahouse.team
issue_url = https://github.com/Teahouse-Studios/bot/issues/new/choose
wiki_whitelist_url = https://s.wd-ljt.com/botwhitelist
qq_msg_logging_to_db = True
qq_host = 127.0.0.1:11451
qq_account = 2314163511
qq_enable_dirty_check = True
qq_enable_urlmanager = True
qq_disable_temp_session = False
web_render_local =
slower_schedule = False
enable_tos = False
enable_analytics = True
allow_request_private_ip = False
enable_eval = True
coin_limit = 10000
coin_faceup_rate = 4994
coin_facedown_rate = 4994
dice_limit = 100
dice_roll_limit = 10
dice_mod_max = 10000
dice_mod_min = -10000
dice_output_cnt = 50
dice_output_len = 200
dice_detail_cnt = 5
dice_count_limit = 10
qq_enable_listening_self_message = False
配置属性
机密
属性 | 使用模块 | 默认值 | 描述 |
---|---|---|---|
db_path | mysql+pymysql:// | 数据库路径,用于存储用户数据。 | |
Check_accessKeyId | 调用阿里云内容安全服务 API 时需要的 AccessKey ID。 | ||
Check_accessKeySecret | 调用阿里云内容安全服务 API 时需要的 AccessKey Secret。 | ||
web_render | Webrender 的地址(IP 或域名)及端口。 | ||
netease_cloud_music_api | ncmusic
|
NeteaseCloudMusicApi 的地址(IP 或域名)及端口。 | |
botarcapi_url | arcaea
|
BotArcAPI 公共实例地址。 | |
botarcapi_agent | arcaea
|
BotArcAPI 公共实例 UA 名称。 | |
dc_token | Discord 机器人令牌。 | ||
tg_token | Telegram 机器人令牌。 | ||
openai_api_key | ask natural summary
|
OpenAI API 密钥。 | |
nl2c_model | natural
|
natural 模块使用的 AI 模型。
| |
curseforge_api_key | mod_dl
|
Curseforge API 密钥。 | |
exchange_rate_api_key | exchange_rate
|
ExchangeRate-API API 密钥。 |