zhenxun_bot/zhenxun/builtin_plugins/hooks/auth
molanp 59d72c3b3d
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
feat(admin): 增加封禁用户理由并优化相关逻辑 (#1992)
* feat(admin): 增加封禁用户理由并优化相关逻辑

- 在 ban 命令中添加了 -r 或 --reason 选项,用于指定封禁理由
- 优化了 ban 命令的参数解析和处理逻辑
- 更新了数据库模型,增加了 ban_reason 字段用于存储封禁理由
- 修复了部分逻辑错误,如永久封禁的处理方式

* 🚨 auto fix by pre-commit hooks

* refactor(ban): 优化 ban 命令和相关功能

- 修复 ban 命令中的 reason 参数可选标记
- 完善恶意触发检测和用户昵称违规的禁言信息
- 统一禁言操作的参数顺序,提高代码可读性

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-29 17:22:27 +08:00
..
auth_admin.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
auth_ban.py feat(admin): 增加封禁用户理由并优化相关逻辑 (#1992) 2025-07-29 17:22:27 +08:00
auth_bot.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
auth_cost.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
auth_group.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
auth_limit.py feat(limit, message): 引入声明式限流系统并增强消息格式化功能 (#1978) 2025-07-15 17:13:33 +08:00
auth_plugin.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
bot_filter.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
config.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
exception.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
utils.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00