Update config.py

This commit is contained in:
HibiKier 2021-09-10 20:10:31 +08:00 committed by GitHub
parent bdc084212f
commit 6864d54e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,12 +58,12 @@ MAXINFO_PRIVATE_ANIME: int = 20 # 私聊搜索动漫返回的最大数量
MAXINFO_GROUP_ANIME: int = 5 # 群搜索动漫返回的最大数量 MAXINFO_GROUP_ANIME: int = 5 # 群搜索动漫返回的最大数量
MAX_FIND_IMG_COUNT: int = 3 # 识图最大返回数 MAX_FIND_IMG_COUNT: int = 3 # 识图最大返回数
# 参1延迟撤回色图时间(秒)0 为关闭 | 参2监控聊天类型0(私聊) 1(群聊) 2(群聊+私聊) # 参1延迟撤回色图时间(秒)0 为关闭 | 参2监控聊天类型0(私聊) 1(群聊) 2(群聊+私聊)
WITHDRAW_SETU_TIME: Tuple[int, int] = (90, 1) WITHDRAW_SETU_TIME: Tuple[int, int] = (0, 1)
# 参1延迟撤回PIX图片时间(秒)0 为关闭 | 参2监控聊天类型0(私聊) 1(群聊) 2(群聊+私聊) # 参1延迟撤回PIX图片时间(秒)0 为关闭 | 参2监控聊天类型0(私聊) 1(群聊) 2(群聊+私聊)
WITHDRAW_PIX_TIME: Tuple[int, int] = (0, 1) WITHDRAW_PIX_TIME: Tuple[int, int] = (0, 1)
# PIX图库 与 额外图库OmegaPixivIllusts 混合搜索的比例 参1PIX图库 参2OmegaPixivIllusts扩展图库没有此图库请设置为0 # PIX图库 与 额外图库OmegaPixivIllusts 混合搜索的比例 参1PIX图库 参2OmegaPixivIllusts扩展图库没有此图库请设置为0
PIX_OMEGA_PIXIV_RATIO: Tuple[int, int] = (2, 8) PIX_OMEGA_PIXIV_RATIO: Tuple[int, int] = (10, 0)
# 各种卡池的开关 # 各种卡池的开关
PRTS_FLAG = True # 明日方舟 PRTS_FLAG = True # 明日方舟
@ -190,7 +190,7 @@ plugins2cd_dict = {
# 参数同上 plugin2cd_dict # 参数同上 plugin2cd_dict
plugins2exists_dict = { plugins2exists_dict = {
"send_setu": { "send_setu": {
"status": False, "status": True,
"check_type": "all", "check_type": "all",
"limit_type": "user", "limit_type": "user",
"rst": "您有色图正在处理,请稍等.....", "rst": "您有色图正在处理,请稍等.....",
@ -318,17 +318,3 @@ if USE_CONFIG_FILE:
plugins2info_dict, plugins2cd_dict, plugins2exists_dict, DATA_PATH plugins2info_dict, plugins2cd_dict, plugins2exists_dict, DATA_PATH
) )
# 配置文件应用
# if USE_CONFIG_FILE:
# config = get_config_data()
# if config:
# for key in config.keys():
# if isinstance(config[key], str):
# config[key] = config[key].strip()
# if key.find("proxy") != -1:
# if not config[key]:
# config[key] = None
# # if not configs[key] and key.find("PATH") == -1:
# # configs[key] = None
# globals().update(config)