Commit Graph

70 Commits

Author SHA1 Message Date
molanp
4ab9382205
build(deps): 更新依赖版本 (#2034) 2025-08-29 15:08:17 +08:00
xuanerwa
30fe5a5393
feat(aliyun): 添加阿里云相关配置和文件操作功能 (#1985)
*  feat(aliyun): 添加阿里云相关配置和文件操作功能

* 🐛 fix bug

* 🎨 更新requirements

* ⬆️ Update poetry.lock

*  feat(aliyun): 添加阿里云获取commit方法

* 更新env pyproject

---------

Co-authored-by: HibiKier <775757368@qq.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-07-17 19:48:33 +08:00
HibiKier
8649aaaa54
引入缓存机制 (#1889)
* 添加全局cache

*  构建缓存,hook使用缓存

*  新增数据库Model方法监控

*  数据库添加semaphore锁

* 🩹 优化webapi返回数据

*  添加增量缓存与缓存过期

* 🎨 优化检测代码结构

*  优化hook权限检测性能

* 🐛 添加新异常判断跳过权限检测

*  添加插件limit缓存

* 🎨 代码格式优化

* 🐛  修复代码导入

* 🐛 修复刷新时检查

* 👽 Rename exception for missing database URL in initialization

*  Update default database URL to SQLite in configuration

* 🔧 Update tortoise-orm and aiocache dependencies restrictions; add optional redis and asyncpg support

* 🐛 修复ban检测

* 🐛 修复所有插件关闭时缓存更新

* 🐛 尝试迁移至aiocache

* 🐛 完善aiocache缓存

*  代码性能优化

* 🐛 移除获取封禁缓存时的日志记录

* 🐛 修复缓存类型声明,优化封禁用户处理逻辑

* 🐛 优化LevelUser权限更新逻辑及数据库迁移

*  cache支持redis连接

* 🚨 auto fix by pre-commit hooks

*  :增强获取群组的安全性和准确性。同时,优化了缓存管理中的相关逻辑,确保缓存操作的一致性。

*  feat(auth_limit): 将插件初始化逻辑的启动装饰器更改为优先级管理器

* 🔧 修复日志记录级别

* 🔧 更新数据库连接字符串

* 🔧 更新数据库连接字符串为内存数据库,并优化权限检查逻辑

*  feat(cache): 增加缓存功能配置项,并新增数据访问层以支持缓存逻辑

* ♻️ 重构cache

*  feat(cache): 增强缓存管理,新增缓存字典和缓存列表功能,支持过期时间管理

* 🔧 修复Notebook类中的viewport高度设置,将其从1000调整为10

*  更新插件管理逻辑,替换缓存服务为CacheRoot并优化缓存失效处理

*  更新RegisterConfig类中的type字段

*  修复清理重复记录逻辑,确保检查记录的id属性有效性

*  超级无敌大优化,解决延迟与卡死问题

*  更新封禁功能,增加封禁时长参数和描述,优化插件信息返回结构

*  更新zhenxun_help.py中的viewport高度,将其从453调整为10,以优化页面显示效果

*  优化插件分类逻辑,增加插件ID排序,并更新插件信息返回结构

---------

Co-authored-by: BalconyJH <balconyjh@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-14 22:35:29 +08:00
BalconyJH
b5f101546a ⬆️ lock multidict != 6.3.2 duo to Memory leak 2025-04-09 16:03:05 +08:00
HibiKier
aef2597b46
添加自动同意群组请求 (#1848)
*  添加自动同意群组请求

*  Add nonebot-plugin-waiter

---------

Co-authored-by: BalconyJH <balconyjh@gmail.com>
2025-02-12 23:32:46 +08:00
BalconyJH
ee55078b56
⬆️ Upgrade nonebot-plugin-htmlrender to version 0.6.0 (#1844) 2025-02-07 13:16:24 +08:00
HibiKier
4ed1791b30
🐛 修复添加插件依赖更新 (#1837)
* 🐛 修复添加插件依赖更新

* 🔧 修改插件依赖安装命令为使用poetry运行pip

* 🐛 修复群组入群与退群提示

* 🐛 修复群组踢出用户提醒

* 🎨 代码优化

* 🎨 群欢迎迁移优化

* 🩹 精确webui调用统计

* 🚨 auto fix by pre-commit hooks

* 🐛 修复测试

* 🎨 fix pre-commit.ci

* 🎨  fix pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-02-03 21:23:14 +08:00
HibiKier
73d2ed444e Add fastapi dependency and remove nonebot-plugin-userinfo 2025-01-10 12:19:11 +08:00
BalconyJH
e2111278d2 ⬆️ Upgrade nonebot-plugin-apscheduler to version 0.5.0, pytest-asyncio to version 0.25.1 and adjust dependencies 2025-01-10 12:19:11 +08:00
BalconyJH
73c4b327df 🔧 Refactor dev dependencies section in pyproject.toml 2025-01-10 12:19:11 +08:00
BalconyJH
2afda7b284 Unlock pydantic version 2025-01-10 12:19:11 +08:00
HibiKier
ccee16bed2 🚨 Add specific ignore items in pyright ignore
🚨 Make pyright happy
♻️ Remove unused adapter
2025-01-10 12:19:11 +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
HibiKier
4291cda244
️ 优化自检插件逻辑,增加规则判断,添加nonebug配置 (#1792)
* ⬆️ Expand the range of nonebug version restrictions and update nonebot-plugin-alconna.

*  Update pytest configuration.

*  Add pytest hook to tag async tests with session-scoped event loop.

* ️ 优化自检插件逻辑,增加规则判断

---------

Co-authored-by: BalconyJH <balconyjh@gmail.com>
2024-12-23 10:09:06 +08:00
HibiKier
a8e4d29031
🐛 修改webui导入路径 (#1783)
* 🐛 修改webui导入路径

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-19 09:51:31 +08:00
molanp
91352e4f3a
修复bot-check工作流 (#1777) 2024-12-17 01:29:11 +08:00
BalconyJH
b010eac041
chore/cleanup-dependencies (#1763)
*  移除opencv-python, aiohttp依赖,更新poetry.source配置格式

* 💚 更新pre-commit配置文件

* 🚨 移除无用导入
2024-12-13 15:00:56 +08:00
BalconyJH
bc5a9c4fcc
Develop: 完全使用 ruff 替代 isort 与 black (#1757)
* 🚨 完全使用 ruff 替代 isort 与 black

* 🚨 ruff lint&format
2024-12-10 19:49:11 +08:00
HibiKier
584026c23c
⬆️ 提高pil依赖版本 (#1746) 2024-11-28 20:20:23 +08:00
HibiKier
3d3a2a5f7f
部分功能适配QQ BOT (#1701) 2024-10-18 18:57:55 +08:00
HibiKier
48a48204f3 🐛 包优化 2024-10-14 11:00:39 +08:00
HibiKier
9e5266a491
使用uninfo进行群组成员更新 (#1690) 2024-10-10 23:25:46 +08:00
HibiKier
3b4c206a24 重构自检ui 2024-09-07 01:25:42 +08:00
AkashiCoin
a61934650e 添加依赖aiocache 2024-09-03 16:52:11 +08:00
HibiKier
133d4e193a 🐛 修改bug与版本锁定 2024-09-02 11:25:47 +08:00
AkashiCoin
7e7436f433
添加测试:更新与添加插件 (#1594)
*  测试更新与添加插件

*  Sourcery建议

* 👷 添加pytest

* 🎨 优化代码
2024-09-01 14:53:41 +08:00
HibiKier
0074483280 🐛 版本锁定 2024-08-30 23:09:10 +08:00
HibiKier
625f17a708 🎨 修复bug,移除plugins文件夹 2024-08-29 22:01:34 +08:00
AkashiCoin
f70b07e5a3
添加代码检查 (#1583)
* 添加代码检查

* 使用Sourcery的建议
2024-08-26 23:54:07 +08:00
HibiKier
d0792e0a1c 移除saa依赖 2024-08-11 15:57:33 +08:00
HibiKier
0b3698438b ️ 代码优化与修复 2024-08-07 23:31:25 +08:00
HibiKier
2bf5fd1a37 feat: 新增Web UI功能及数据库、日志等API接口 2024-07-31 04:58:29 +08:00
HibiKier
d4a49a47e5 feat: 添加B站转发解析功能 2024-07-28 20:29:03 +08:00
HibiKier
aa7a8271f3 feat: 添加游戏抽卡功能 2024-07-28 03:37:37 +08:00
HibiKier
4b48fc2557 feat: 插件管理添加统一开关命令 2024-07-18 23:16:29 +08:00
HibiKier
fabeb4711f feat: 复读 2024-05-28 14:22:24 +08:00
HibiKier
27c9394b0d feat: 色图 2024-05-26 15:22:55 +08:00
HibiKier
1aed19035e feat: search_anime 2024-05-23 14:28:48 +08:00
HibiKier
b74998db87 feat: add check 2024-03-19 00:34:04 +08:00
HibiKier
606da31851 feat: add bt 2024-03-18 17:50:07 +08:00
HibiKier
5dd03bb0ca feat: add black_word 2024-03-18 16:10:44 +08:00
HibiKier
7b3793728a feat: 添加hook,更新其他 2024-02-26 03:04:32 +08:00
HibiKier
eb0572ea77 feat: 更新内置插件 2024-02-25 03:18:34 +08:00
HibiKier
131200a28e init🎉: 首次提交 2024-02-04 04:18:54 +08:00
HibiKier
1130569a20 fix🐛: 修正b站订阅 2023-09-06 18:53:15 +08:00
HibiKier
848de7f4fe 数据库中所有user_qq改名以及user_id和group_id改为字符串 2023-05-22 20:56:42 +08:00
HibiKier
8133b61ebd Config提供type字段确定配置项类型 2023-02-26 22:17:26 +08:00
HibiKier
fa88a08d8e UPDATE pypoetry.toml 2023-02-21 20:38:19 +08:00
HibiKier
3c0f35b3b7 UPDATE pyproject.toml 2023-02-21 20:32:38 +08:00
HibiKier
b25b9ca928 优化管理员帮助超级用户帮助图片,重新移植gamedraw,修复pil帮助私聊时无法生成 2022-12-24 00:16:17 +08:00