Commit Graph

860 Commits

Author SHA1 Message Date
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
Ju4tCode
45e2e6c280
🐛 fix event maybe converted when checking type (#876)
Fix: 修复 event 类型检查会对类型进行自动转换
2022-03-20 19:40:43 +08:00
Ju4tCode
02de6fd266
add rule permission reflected operation support (#872)
Feature: 添加 Rule, Permission 反向位运算支持
2022-03-17 21:11:37 +08:00
yanyongyu
6920ec3a11
🏷️ fix fullmatch return type error 2022-02-18 11:12:19 +08:00
Ju4tCode
192c8da09c
🔀 Merge pull request #797
Feature: 新增文本完整匹配规则
2022-02-18 11:04:49 +08:00
Mix
0f0dc0a818 improve full match performance with frozenset 2022-02-17 23:49:47 +08:00
AkiraXie
c48ddaf0a2 🐛 fix DataclassEncoder bug and add test case 2022-02-17 15:06:26 +08:00
pre-commit-ci[bot]
f737bb899c 🚨 auto fix by pre-commit hooks 2022-02-15 00:27:43 +00:00
Akirami
9f12404338
add full match Matcher 2022-02-15 08:20:29 +08:00
Mix
04fe654d74
📝 Add document for message template (#789)
* 📝 Add document for message template

* 📝 🎨 Optimize example reading experience for message template

* 🚨 auto fix by pre-commit hooks

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-12 16:15:06 +08:00
yanyongyu
943de58826
🏷️ fix typing error 2022-02-11 11:25:31 +08:00
Mix
b7762b9176 🔒 🐛 Add initial value to vformat results list, fix #781 2022-02-10 13:17:11 +08:00
Mix
28cfa45d95 🐛 Fix Message.template format spec does not support static method
Fixes #770
2022-02-06 18:40:30 +08:00
yanyongyu
118519e15d
♻️ reorganize internal tree 2022-02-06 17:08:11 +08:00
yanyongyu
924d9b6536
✏️ fix changelog and typing 2022-02-06 15:24:41 +08:00
yanyongyu
fd11e2696b
♻️ reorganize class and add bot hook di 2022-02-06 14:52:50 +08:00
yanyongyu
dcaf5cedcf
💡 update matcher docstrings 2022-02-05 16:49:21 +08:00
AkiraXie
4e1e0e98b4
Merge branch 'nonebot:dev' into dev 2022-02-04 15:14:06 +08:00
AkiraXie
a68a6e2659 ✏️ fix typo in fastapi 2022-02-04 15:13:31 +08:00
yanyongyu
e720584044
change hook parse typing 2022-02-04 11:12:17 +08:00
yanyongyu
ec9e8511b7
reduce the hook typing limit 2022-02-04 11:06:38 +08:00
yanyongyu
60ccdf8a7a
🐛 fix typing error for logger wrapper 2022-01-30 15:03:10 +08:00
yanyongyu
2cd6867bd1
add more tests 2022-01-30 11:04:02 +08:00
yanyongyu
2ec5917709
🐛 fix missing self instance validate 2022-01-29 23:55:14 +08:00
yanyongyu
5fa7806a2f
improve pydantic validate for message 2022-01-29 18:20:30 +08:00
yanyongyu
b43dfb983d
⚰️ remove unused import 2022-01-29 15:36:25 +08:00
yanyongyu
e887c39998
🏷️ update message typing 2022-01-29 13:56:54 +08:00
Ju4tCode
ac0dd63ca4
🔀 Merge pull request #749
CI: avoid duplicate CI runs
2022-01-28 16:48:06 +08:00
yanyongyu
ad712c59b3
reuse type check code for dependent 2022-01-28 14:49:04 +08:00
yanyongyu
1271a757c9
👽 update type check due to py3.10 UnionType 2022-01-28 14:27:54 +08:00
pre-commit-ci[bot]
fd8fd233b6 🚨 auto fix by pre-commit hooks 2022-01-28 06:04:57 +00:00
yanyongyu
1da7da9fc1
🐛 fix dict(config) raise error 2022-01-27 11:15:44 +08:00
yanyongyu
0885474b94
improve plugin finder 2022-01-26 20:55:23 +08:00
yanyongyu
770e808f1d add require tests 2022-01-26 15:37:35 +08:00
yanyongyu
5c73c80c65 🐛 fix require error 2022-01-26 15:06:53 +08:00
Ju4tCode
596f763c46
🔀 Merge pull request #691
:construction_workerusing: nb-autodoc to generate api docs
2022-01-23 12:07:51 +08:00
yanyongyu
5f3902fe61 ✏️ fix hook typo 2022-01-23 11:48:35 +08:00
yanyongyu
12d9a68351 🐛 fix typing error for mutex 2022-01-22 15:26:22 +08:00
yanyongyu
c4e204001e 💡 add docstrings 2022-01-22 15:23:07 +08:00
yanyongyu
f9674da6ea 💡 add di docstrings 2022-01-21 21:04:17 +08:00
yanyongyu
aef585c60c 💡 add adapter docstring 2022-01-20 14:49:46 +08:00
AkiraXie
f6308916ad 🐛 fix bug and improve test coverage 2022-01-20 03:16:04 +08:00
pre-commit-ci[bot]
b3d0e7c548 🚨 auto fix by pre-commit hooks 2022-01-19 18:10:30 +00:00
AkiraXie
67f5b87492 🐛 fix single_session bug 2022-01-20 02:05:57 +08:00
yanyongyu
98ef09585a 💡 add docstrings 2022-01-19 16:16:56 +08:00
yanyongyu
4701537a48 💡 add docstrings 2022-01-18 23:46:10 +08:00
yanyongyu
608cf859c8 💡 add log, exception, consts docstring 2022-01-18 16:12:12 +08:00
yanyongyu
27b1ded9a1 💡 add config docstring 2022-01-18 12:31:08 +08:00
yanyongyu
a07919ad5c 📝 rewrite docstring 2022-01-17 15:06:53 +08:00
Mix
3b4c4d3081 Implement .count and optimize .get performance for message slice 2022-01-17 00:28:36 +08:00
Mix
1221baaa94 Implement .get and .index methods for Message 2022-01-16 17:13:26 +08:00
pre-commit-ci[bot]
39822378a7 🚨 auto fix by pre-commit hooks 2022-01-16 05:26:55 +00:00
Mix
3041650b4b add advanced message slice support 2022-01-16 13:17:05 +08:00
yanyongyu
3a9a5a9ce9 📝 add frontmatter config 2022-01-16 11:30:09 +08:00
yanyongyu
9b6d8b6efa 📝 test autogen docs 2022-01-15 23:53:36 +08:00
yanyongyu
b7a0ba11d5 🔀 Merge branch dev 2022-01-15 22:12:50 +08:00
yanyongyu
93aec6d3f6 🏷️ add pre-commit flow 2022-01-15 21:27:43 +08:00
hemengyang
8d0951a816 📝 fix wrong syntax and link 2022-01-15 09:35:30 +08:00
yanyongyu
cc343c981f 💩 add logger format todo 2022-01-14 12:32:03 +08:00
hemengyang
98deadb4d6 粗略过一遍,修复一眼可见的问题 2022-01-12 19:41:42 +08:00
hemengyang
ec06010298 令标题符合 markdown 语法 2022-01-12 19:24:01 +08:00
hemengyang
cd69b22d43 令 tip 符合格式 2022-01-12 19:20:59 +08:00
hemengyang
f298930f9d 更新依赖参数的注释 2022-01-12 19:15:56 +08:00
hemengyang
0e97022d3b 调整缩进 2022-01-12 19:10:29 +08:00
hemengyang
6d21cbed55 令用法符合格式 2022-01-12 18:53:30 +08:00
hemengyang
edb20a4786 令异常符合格式 2022-01-12 18:45:35 +08:00
hemengyang
187532930b 令返回符合格式 2022-01-12 18:43:07 +08:00
hemengyang
456d333568 令参数符合标准 2022-01-12 18:31:12 +08:00
hemengyang
a5f32febbd 令参数列表符合 autodoc 格式 2022-01-12 18:25:25 +08:00
hemengyang
4ba1a09fb7 使用 markdown 格式的强调语法 2022-01-12 18:19:21 +08:00
hemengyang
0099364838 删除说明前缀 2022-01-12 18:16:05 +08:00
hemengyang
0e11959347 删除默认值 2022-01-12 18:02:08 +08:00
hemengyang
705a6f7fbf 删除类型 2022-01-12 18:00:56 +08:00
Ju4tCode
f837e5f3fa
Merge pull request #673 from A-kirami/dev
从 Fastapi 的文档中排除驱动器的 HTTP 上报地址
2022-01-11 15:12:37 +08:00
yanyongyu
d82f0c6310 ⚗️ add config option for fastapi 2022-01-11 15:03:17 +08:00
yanyongyu
742d1f1f02 ⚗️ fix load builtin plugin 2022-01-10 22:52:10 +08:00
yanyongyu
1b035ed19b 🔥 add State() deprecation warning 2022-01-10 22:24:45 +08:00
yanyongyu
2ccdc218e0 improve state detect #677 2022-01-10 11:21:01 +08:00
yanyongyu
d6f5216d29 🐛 fix plugin load fail 2022-01-09 23:15:33 +08:00
yanyongyu
3fa8bd2cd0 🐛 fix receive and got missing detect error 2022-01-09 20:34:03 +08:00
明见
096f0d72f1
从 Fastapi 的文档中排除驱动器的 HTTP 上报地址 2022-01-08 22:19:45 +08:00
yanyongyu
0a10a3c18b 📝 add examples 2022-01-07 18:38:04 +08:00
yanyongyu
6b2d8d2674 🐛 fix param missing name 2022-01-07 16:27:35 +08:00
yanyongyu
89ae275793 📝 update handler doc 2022-01-06 17:51:32 +08:00
yanyongyu
e39539a3be add rule test cases 2022-01-05 18:29:11 +08:00
yanyongyu
7f54468868 ✏️ fix typo 2022-01-04 16:04:30 +08:00
yanyongyu
bbbb5bbecd ⬆️ upgrade dependencies 2022-01-04 14:36:32 +08:00
yanyongyu
479952777b ⬆️ upgrade dependency 2022-01-02 18:18:37 +08:00
Mix
43938a004e ♻️ refactor template format_field to improve readability 2022-01-02 13:13:43 +08:00
Mix
983e5aefdb support user-defined format spec for message template 2022-01-01 21:52:54 +08:00
yanyongyu
620938c26c 🐛 fix modal hidden 2022-01-01 21:11:46 +08:00
yanyongyu
338c41abd5 improve const performance 2022-01-01 16:43:48 +08:00
yanyongyu
78d0ec847e 🚧 add handler di example 2021-12-31 23:58:59 +08:00
yanyongyu
ec35f292bd 🐛 fix matcher got receive type error 2021-12-31 22:43:29 +08:00
yanyongyu
d1706e438b 🚧 add store pagination 2021-12-30 12:56:10 +08:00
yanyongyu
23d0b2509e 🐛 fix ws close exception not catch in server 2021-12-30 12:11:31 +08:00
yanyongyu
80c0ac5456 ✏️ fix typo 2021-12-29 23:06:47 +08:00
yanyongyu
af03188f88 🐛 fix on_command block cannot set 2021-12-29 22:23:35 +08:00
yanyongyu
4bd2156929 🐛 fix matcher.skip missing 2021-12-29 21:52:46 +08:00
yanyongyu
f06b78054c 🔥 remove debug option 2021-12-28 15:19:53 +08:00
yanyongyu
5cfeb4e79d 🐛 fix log level bug 2021-12-28 14:33:03 +08:00
yanyongyu
86c859fec2 📝 add create matcher doc 2021-12-28 11:51:14 +08:00
yanyongyu
db826caff4 📝 add load plugin and config doc 2021-12-28 01:02:04 +08:00