Commit Graph

862 Commits

Author SHA1 Message Date
worldmozara
c03ff4e676
Feature: 添加用于动态继承支持适配器数据的方法 (#2127) 2023-06-27 16:25:27 +08:00
eya46
8de25447b3
🐛 Fix: 修复 ArgParam 不支持 Annotated (#2124)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-24 19:18:24 +08:00
Ju4tCode
3d5dd5969c
🚨 Develop: 添加 ruff linter (#2114) 2023-06-24 14:47:35 +08:00
Ju4tCode
e00890033e
add plugin metadata to builtin plugins (#2113) 2023-06-20 13:50:05 +08:00
Ju4tCode
f6b0809e5f
Feature: 依赖注入支持 Generic TypeVar 和 Matcher 重载 (#2089) 2023-06-11 15:33:33 +08:00
Jigsaw
324277091c
🐛 Fix: aiohttp 请求时 data 和 file 不能同时存在 (#2088) 2023-06-11 14:59:05 +08:00
DiheChen
491855876b
🐛 Fix: 修复因 loguru 更新导致的启动和关闭日志 name 不正常 (#2080)
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
2023-06-03 22:45:46 +08:00
Ju4tCode
f3d5c1f226
🔖 Release: v2.0.0 (#2070) 2023-06-01 14:18:16 +08:00
Ju4tCode
f52abc8314
Feature: 优化事件分发方法 (#2067) 2023-05-30 15:20:31 +08:00
Ju4tCode
2cfc20c143
🐛 fix require new plugin context error (#2040) 2023-05-22 00:00:50 +08:00
Ju4tCode
aa48299d5d
improve dependency injection params (#2034) 2023-05-21 16:01:55 +08:00
Ju4tCode
9616b4c0ca
Feature: 添加插件元数据字段 type homepage supported_adapters (#2012) 2023-05-18 16:00:10 +08:00
Ju4tCode
dc2c5e3c80
🐛 fix command whitespace if no arg (#1975) 2023-05-04 14:25:09 +08:00
synodriver
72b798f7ae
🐛 Fix: run_sync 上下文 (#1968) 2023-05-03 15:37:53 +08:00
Ju4tCode
93b79ddcb3
Feature: 支持 re.Match 依赖注入 (#1950) 2023-04-27 21:58:56 +08:00
Ju4tCode
6691f6ef70
support exit none driver (#1951) 2023-04-27 17:26:59 +08:00
Ju4tCode
565aba61dc
🐛 Fix: shell command 包含富文本时报错信息出错 (#1923) 2023-04-14 16:26:54 +08:00
Ju4tCode
1817102a7c
Feature: 为消息类添加 has join include exclude 方法 (#1895) 2023-04-04 21:42:01 +08:00
Akirami
283560daa7
Feature: 公开自定义 on 函数所需的函数 (#1856)
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
2023-03-29 23:09:33 +08:00
Ju4tCode
9f707469da
fix test coverage condition (#1862) 2023-03-29 19:00:25 +08:00
Ju4tCode
a8a76393a5
Feature: 重构驱动器 lifespan 方法 (#1860) 2023-03-29 15:59:54 +08:00
Ju4tCode
2a2f7b6dce
🐛 detect runtime plugin (#1857) 2023-03-29 12:22:50 +08:00
Ju4tCode
1213e89bf5
add coverage condition annotation (#1858) 2023-03-29 11:57:33 +08:00
Ju4tCode
8fbc85cf50
🐛 fix matcher create missing block (#1859) 2023-03-29 10:38:39 +08:00
uy/sun
8bb92309d5
📝 Docs: 更新指向文档的链接 (#1841) 2023-03-25 10:58:03 +08:00
uy/sun
00686380b8
Feature: 在 Windows 上处理 SIGBREAK 信号 (#1836) 2023-03-24 11:47:02 +08:00
Johnny Hsieh
3e92fccd4e
Feature: 为子依赖添加 PEP593 Annotated 支持 (#1832)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-03-22 20:54:46 +08:00
Ju4tCode
78bbf9e623
🐛 Fix: 修复 bot hook 缺少依赖缓存和上下文管理 (#1826) 2023-03-20 22:37:57 +08:00
Ju4tCode
ba808c85d5
improve user permission accessibility (#1825) 2023-03-20 12:39:17 +08:00
Ju4tCode
36e99bc3ea
Feature: 移除内置响应规则事件类型限制 (#1824) 2023-03-19 15:45:32 +08:00
Ju4tCode
8f44df371a
allow using matcher subclass (#1815) 2023-03-17 15:48:48 +08:00
Ju4tCode
3462295562
🐛 fix missing cache in session updater (#1807) 2023-03-16 15:51:48 +08:00
Ju4tCode
f3aa8c6aa5
🐛 assert bot when disconnect (#1757) 2023-03-01 18:22:07 +08:00
Ju4tCode
d0f832c4cd
Feature: 添加 get_adapter 类型 overload (#1755)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-02-28 14:46:09 +08:00
Ju4tCode
433c672130
Feature: 命令匹配支持强制指定空白符 (#1748) 2023-02-27 00:11:24 +08:00
Ju4tCode
04a7c3bc13
add get adapter (#1747) 2023-02-26 14:15:10 +08:00
Ju4tCode
74743e6176
Develop: 升级 NoneBug 版本 (#1725) 2023-02-22 23:32:48 +08:00
Ju4tCode
8f79ba1ccd
Feature: 使用 tomllib 读取 toml 配置 (#1720) 2023-02-20 22:25:14 +08:00
Ju4tCode
728902bfcf
🔊 Feature: 优化插件加载日志 (#1716) 2023-02-20 13:19:05 +08:00
scdhh
4c0d4065c5
Use raise from e when load driver error (#1689) 2023-02-09 10:24:27 +08:00
Ju4tCode
73126535ef
⬆️ upgrade pre-commit config (#1674)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-02-05 12:57:31 +08:00
Anh71me
d2f000bb16
Docs: Bump nb-autodoc from 0.x to 1.0.0a5 (#1661) 2023-02-02 16:10:22 +08:00
StarHeart
a11ac82a91
🚸 add constraint for port (#1632) 2023-01-25 12:31:26 +08:00
Akirami
3f7e2604f1
🔊 Feature: 添加事件响应器检查完成日志 (#1578)
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
2023-01-11 16:51:20 +08:00
Akirami
d4e1bb7bf3
🐛 修复子插件加载失败时没有从父插件中移除的问题 (#1559) 2023-01-07 16:01:56 +08:00
Ju4tCode
87e767fa25
remove default fastapi installation (#1557) 2023-01-06 20:07:28 +08:00
Akirami
006b9dd816
Feature: 支持给 FastAPIQuart 传递额外的参数 (#1543) 2023-01-04 12:58:26 +08:00
Akirami
f8cee790e7
Feature: 添加 logger 重导出 (#1526)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-01-01 15:22:07 +08:00
uy/sun
69edb98835
Feature: 将 block driver 转正为 none 驱动器 (#1522) 2023-01-01 15:08:00 +08:00
uy/sun
9b3e670cee
🐛 修复异常在 traceback 中无法正常显示信息 (#1521) 2022-12-31 20:41:53 +08:00
Ju4tCode
2d08465426
add cookies support for forward driver 2022-12-20 10:13:45 +00:00
Ju4tCode
ceecf9c692
🐛 fix on_type typing error (#1482) 2022-12-18 15:53:25 +08:00
Ju4tCode
a5d26b7747
add pycln to auto remove unused imports (#1481) 2022-12-17 17:04:38 +08:00
Akirami
c4286f1f39
💡 补充 params 模块的类型注解 (#1458) 2022-12-10 00:12:28 +08:00
Akirami
36d7b44741
Feature: 添加正则匹配文本注入 (#1457)
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-12-09 14:42:54 +08:00
Akirami
06c33ad6ea
Feature: 支持主动销毁事件响应器 (#1444)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-12-06 14:19:48 +08:00
Ju4tCode
e8ffa63b78
🐛 fix argument parser message (#1426) 2022-11-29 12:00:09 +08:00
Ju4tCode
1644615462
🔖 bump version 2.0.0rc2 2022-11-24 03:35:31 +00:00
Ju4tCode
2922da7b2f
Feature: 支持自定义 matchers 存储管理 (#1395) 2022-11-21 18:44:55 +08:00
synodriver
0eadb44e20
🐛 Fix: Bot __getattr__ 不再对 __xxx__ 方法返回 (#1398) 2022-11-19 16:14:03 +08:00
Ju4tCode
a50990bef2
🐛 fix run pre/post hook not in context (#1391) 2022-11-15 10:50:52 +08:00
Akirami
4355025f87
Feature: 使用 importlib.metadata 替换 pkg_resources (#1388)
Co-authored-by: yanyongyu <42488585+yanyongyu@users.noreply.github.com>
2022-11-12 18:22:16 +08:00
Ju4tCode
db534b8824
Feature: 新增 dotenv 嵌套配置项支持 (#1324)
Co-authored-by: hemengyang <hmy0119@hotmail.com>
2022-10-14 09:58:44 +08:00
Akirami
8377680fd7
Feature: 添加 State 响应器触发消息注入 (#1315) 2022-10-12 13:41:28 +08:00
Ju4tCode
cec45cf89c
⚰️ remove dead namespace (#1306) 2022-10-06 11:50:18 +08:00
Ju4tCode
71aad502d1
🐛 Fix: 内置规则和权限没有捕获错误 (#1291) 2022-09-29 16:56:06 +08:00
AkiraXie
31022a653d
Feature: SUPERUSER 权限匹配任意超管事件 (#1275)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-18 22:33:36 +08:00
Akirami
3bbca0fa70
Feature: 改进 CommandGroupMatcherGroup 的结构 (#1240) 2022-09-10 20:54:49 +08:00
Ju4tCode
8c42490a7e
🔇 Feature: 调整日志输出格式与等级 (#1233) 2022-09-09 11:52:57 +08:00
Akirami
beef564a22
🔥 remove unused imports (#1236) 2022-09-08 10:37:16 +08:00
Ju4tCode
a0b186aff3
♻️ improve dependent structure (#1227) 2022-09-07 09:59:05 +08:00
Ju4tCode
cd30be21ba
🐛 fix nested user permission update (#1208) 2022-09-01 10:41:43 +08:00
Lan
1cfdee2645
Featue: load_plugin 支持 pathlib.Path (#1194)
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
2022-08-31 10:07:14 +08:00
Ju4tCode
3fda978064
Feature: 新增事件类型过滤 rule (#1183) 2022-08-30 09:54:09 +08:00
Ju4tCode
3f8af04803
add rich text support for shell command (#1171) 2022-08-24 09:54:08 +08:00
Mix
92ff1df419
🐛 修复当消息与不支持的类型相加时抛出的异常类型错误 (#1166) 2022-08-22 14:39:00 +08:00
Ju4tCode
4deae8f00c
🔥 remove deprecated State param (#1160) 2022-08-20 10:17:52 +08:00
Ju4tCode
898c29d7ee
💥 remove deprecated nonebot.plugins toml table (#1151)
Feature: 移除过时的 `nonebot.plugins` toml 配置
2022-08-16 10:03:37 +08:00
Ju4tCode
4974c596ec
💥 remove Python 3.7 support (#1148) 2022-08-14 19:41:00 +08:00
Ju4tCode
1766d4da69
💥 remove deprecated export (#1125) 2022-08-08 21:07:36 +08:00
Ju4tCode
bb1b94e5e3
🔖 bump version 2.0.0-beta.5 (#1122) 2022-08-04 14:14:50 +08:00
Ju4tCode
2192e8cb6d
🐛 fix parent detect error after require (#1121) 2022-08-04 13:39:20 +08:00
AkiraXie
c6bc24efc2
🐛 run_postprecessors handle matcher.state now (#1119) 2022-08-02 10:29:48 +08:00
Ju4tCode
71bf1d1147
🐛 fix import error if setuptools not installed (#1116)
Fix: 修复 setuptools 未安装导致 ImportError
2022-08-01 10:52:15 +08:00
Dobiichi-Origami
c03b0c73cb
Feature: on_x 支持 expire_time 参数 (#1106)
Co-authored-by: Dobiichi-Origami <454470535@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: yanyongyu <42488585+yanyongyu@users.noreply.github.com>
2022-07-20 10:21:31 +08:00
synodriver
9bd07b9ced
add block driver startup/shutdown sync support (#1104)
Feature: 正向驱动器 startup/shutdown hook 支持同步函数
2022-07-15 10:11:19 +08:00
Akirami
9dbea871b8
✏️ fix type T_RunPostProcessor incorrect description (#1057)
Bug: 修复 typing 中 T_RunPostProcessor 类型的注释描述不正确
2022-06-24 10:51:06 +08:00
Ju4tCode
f11970132c
Fix: 修复 MessageSegment 在有额外数据时报错 (#1055) 2022-06-20 15:52:12 +08:00
Ju4tCode
06ee47edcd
Feature: 添加插件元信息定义 (#1046) 2022-06-20 15:49:53 +08:00
Ju4tCode
7b06469a30
🐛 fix env var not override dotenv file (#1052) 2022-06-18 14:47:42 +08:00
BlueGlassBlock
4241eb538c
🎨 Feature: 日志记录自动检测终端是否支持彩色 (#1034)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-03 20:59:04 +08:00
Ju4tCode
fa3ed2b58c
improve plugin system (#1011) 2022-05-26 16:35:47 +08:00
Ju4tCode
6feed0610b
🐛 fix union validation error (#1001) 2022-05-22 19:42:30 +08:00
Ju4tCode
80594cffb6
🔊 add export deprecation warning (#983) 2022-05-20 17:34:15 +08:00
Ju4tCode
56f99b7f0b
Feat: 支持 WebSocket 连接同时获取 str 或 bytes (#962) 2022-05-14 21:06:57 +08:00
Ju4tCode
5e970a291f
🐛 fix di default param eq override (#971) 2022-05-14 16:54:41 +08:00
Mix
95331bbb22
🐛 Fix MessageTemplate improper behavior when no format spec (#947)
* 🧪 Add a test to figure out bug in #938

* ♻️ 🐛 Refactor rich message template formatting, fix #938
2022-04-30 09:59:23 +08:00
MeetWq
533e99418c
Feat: 添加 CommandStart 依赖注入参数 (#915)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: yanyongyu <42488585+yanyongyu@users.noreply.github.com>
2022-04-20 14:43:29 +08:00
Ju4tCode
2f3324ce0c
🐛 Fix: Bot Hook 没有捕获跳过异常 (#905) 2022-04-04 10:35:14 +08:00
Akirami
f20cf785ce
🏷️ fix some matcher's redundant optional (#904)
Fix: 修复部分事件响应器参数类型中冗余的 Optional
2022-04-01 16:29:44 +08:00