2022-03-13 21:25:42 +08:00
|
|
|
|
"""这是一份实例配置文件
|
|
|
|
|
|
|
|
|
|
将其修改为你需要的配置,并将文件夹config_example重命名为config
|
|
|
|
|
"""
|
|
|
|
|
# hoshino监听的端口与ip
|
|
|
|
|
PORT = 80
|
|
|
|
|
HOST = '127.0.0.1' # 本地部署使用此条配置(QQ客户端和bot端运行在同一台计算机)
|
|
|
|
|
# HOST = '0.0.0.0' # 开放公网访问使用此条配置(不安全)
|
|
|
|
|
|
|
|
|
|
DEBUG = False # 调试模式
|
|
|
|
|
|
|
|
|
|
WHITE_LIST = []
|
|
|
|
|
SUPERUSERS = [] # 填写超级用户的QQ号,可填多个用半角逗号","隔开
|
|
|
|
|
GUILDADMIN = []
|
|
|
|
|
NICKNAME = ('派蒙','bot') # 机器人的昵称。呼叫昵称等同于@bot,可用元组配置多个昵称
|
|
|
|
|
|
2022-03-17 20:59:47 +08:00
|
|
|
|
COMMAND_START = {''} # 命令前缀(空字符串匹配任何消息)
|
2022-03-13 21:25:42 +08:00
|
|
|
|
COMMAND_SEP = set() # 命令分隔符(hoshino不需要该特性,保持为set()即可)
|
|
|
|
|
|
|
|
|
|
# 发送图片的协议
|
|
|
|
|
# 可选 http, file, base64
|
|
|
|
|
# 当QQ客户端与bot端不在同一台计算机时,可用http协议
|
|
|
|
|
RES_PROTOCOL = 'file'
|
|
|
|
|
# 资源库文件夹,需可读可写,windows下注意反斜杠转义
|
|
|
|
|
RES_DIR = r'./res/'
|
|
|
|
|
# 使用http协议时需填写,原则上该url应指向RES_DIR目录
|
|
|
|
|
RES_URL = 'http://127.0.0.1:5000/static/'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 启用的模块
|
|
|
|
|
# 初次尝试部署时请先保持默认
|
|
|
|
|
# 如欲启用新模块,请认真阅读部署说明,逐个启用逐个配置
|
|
|
|
|
# 切忌一次性开启多个
|
|
|
|
|
MODULES_ON = {
|
|
|
|
|
'botmanage',
|
|
|
|
|
'dice',
|
|
|
|
|
'avatar_gif',
|
|
|
|
|
'codeonline',
|
|
|
|
|
'Paimonchat',
|
|
|
|
|
'Genshin_Paimon',
|
2022-03-18 22:47:05 +08:00
|
|
|
|
'myb_exchange'
|
2022-03-13 21:25:42 +08:00
|
|
|
|
}
|