mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-28 16:20:56 +08:00
* bugfix:更换数据库初始化超时路径以修复连接超时问题 * 移除部分观测链路 * 细节修改 * 权限检查细节修改2 * bugfix:修复金币懒加载造成插件金币消耗不了的问题 * bugfix:整理鉴权逻辑 * 完善缓存系统 * 优化官端使用 * bugfix:增加官机和频道的前导统一剥离,新增获取群列表自愈 * bugfix:修复导入问题
53 lines
1012 B
Python
53 lines
1012 B
Python
from pathlib import Path
|
|
|
|
import nonebot
|
|
|
|
from zhenxun.configs.config import Config
|
|
|
|
Config.add_plugin_config(
|
|
"hook",
|
|
"CHECK_NOTICE_INFO_CD",
|
|
300,
|
|
help="群检测,个人权限检测等各种检测提示信息cd",
|
|
default_value=300,
|
|
type=int,
|
|
)
|
|
|
|
Config.add_plugin_config(
|
|
"hook",
|
|
"MALICIOUS_BAN_TIME",
|
|
30,
|
|
help="恶意命令触发检测触发后ban的时长(分钟)",
|
|
default_value=30,
|
|
type=int,
|
|
)
|
|
|
|
Config.add_plugin_config(
|
|
"hook",
|
|
"MALICIOUS_CHECK_TIME",
|
|
5,
|
|
help="恶意命令触发检测规定时间内(秒)",
|
|
default_value=5,
|
|
type=int,
|
|
)
|
|
|
|
Config.add_plugin_config(
|
|
"hook",
|
|
"MALICIOUS_BAN_COUNT",
|
|
6,
|
|
help="恶意命令触发检测最大触发次数",
|
|
default_value=6,
|
|
type=int,
|
|
)
|
|
|
|
Config.add_plugin_config(
|
|
"hook",
|
|
"IS_SEND_TIP_MESSAGE",
|
|
True,
|
|
help="是否发送阻断时提示消息",
|
|
default_value=True,
|
|
type=bool,
|
|
)
|
|
|
|
nonebot.load_plugins(str(Path(__file__).parent.resolve()))
|