Commit Graph

17 Commits

Author SHA1 Message Date
HibiKier
f9a38a26b2
🐛 修复群组申请通知 (#2026)
Some checks are pending
检查bot是否运行正常 / bot check (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
*  修复一些bug

- 移除不必要的定时器类,简化代码结构
- 优化好友请求处理逻辑,确保在自动同意和手动处理之间的清晰区分
- 更新缓存机制,避免重复处理相同的好友请求
- 新增判断文件是否为二进制文件的功能,提升文件处理的准确性
- 优化缓存字典的过期检查逻辑,提高性能和可读性

*  更新 get_async_client 函数,支持字符串类型的代理参数

- 修改 proxies 参数类型,允许传入字符串形式的代理地址
- 增强代理处理逻辑,将字符串代理转换为字典格式,提升灵活性和可用性
2025-08-19 16:20:52 +08:00
HibiKier
3deffcb46c
增强缓存功能,优化请求管理逻辑 (#2012)
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
- 在 `record_request.py` 和 `group_handle/__init__.py` 中引入了 `CacheRoot`,实现请求缓存,避免重复处理相同请求。
- 在 `exception.py` 中更新 `ForceAddGroupError` 类,新增 `group_id` 属性以便于错误处理。
- 在 `data_source.py` 中修改 `ForceAddGroupError` 的抛出逻辑,包含 `group_id` 信息。
- 更新 `cache` 类,支持类型化缓存字典和列表,增强缓存的类型安全性。

此更新提升了请求处理的效率和准确性,同时增强了错误信息的可追溯性。
2025-08-06 16:31:09 +08:00
HibiKier
611f0b62ba
引用消息同意好友/群组请求 (#1902)
*  提供event日志表, 新增引用消息同意好友/群组请求

*  移除城市列表更新

*  新增申请入群功能

* 💬 文本修改
2025-06-09 14:39:28 +08:00
HibiKier
aef2597b46
添加自动同意群组请求 (#1848)
*  添加自动同意群组请求

*  Add nonebot-plugin-waiter

---------

Co-authored-by: BalconyJH <balconyjh@gmail.com>
2025-02-12 23:32:46 +08:00
HibiKier
e814469b75 Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00
BalconyJH
bc5a9c4fcc
Develop: 完全使用 ruff 替代 isort 与 black (#1757)
* 🚨 完全使用 ruff 替代 isort 与 black

* 🚨 ruff lint&format
2024-12-10 19:49:11 +08:00
HibiKier
4e42d1dda1 🐛 修复超级用户id获取问题 2024-09-09 23:01:15 +08:00
HibiKier
3b4c206a24 重构自检ui 2024-09-07 01:25:42 +08:00
HibiKier
c36bb9771c 🎨 优化代码 2024-09-04 21:10:54 +08:00
HibiKier
625f17a708 🎨 修复bug,移除plugins文件夹 2024-08-29 22:01:34 +08:00
HibiKier
45c6dbd2ce 🎨 代码优化 2024-08-24 19:32:52 +08:00
HibiKier
f69253616e 🎨 签到优化与配置修改 2024-08-24 17:06:23 +08:00
HibiKier
d0792e0a1c 移除saa依赖 2024-08-11 15:57:33 +08:00
HibiKier
36047693aa 🐛 修复处理问题并优化代码 2024-08-02 20:46:51 +08:00
HibiKier
1ecb364f30 🐛 修复好友请求及群聊请求处理问题 2024-08-02 19:43:13 +08:00
HibiKier
eb0572ea77 feat: 更新内置插件 2024-02-25 03:18:34 +08:00
HibiKier
131200a28e init🎉: 首次提交 2024-02-04 04:18:54 +08:00