CMHopeSunshine fa12023db0 小派蒙
2022-03-13 21:25:42 +08:00

44 lines
1.5 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""这是一份实例配置文件
将其修改为你需要的配置并将文件夹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可用元组配置多个昵称
COMMAND_START = {'#'} # 命令前缀(空字符串匹配任何消息)
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',
'myb_exchange',
'check_status',
}