Commit Graph

218 Commits

Author SHA1 Message Date
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 93aec6d3f6 🏷️ add pre-commit flow 2022-01-15 21:27:43 +08:00
hemengyang ec06010298 令标题符合 markdown 语法 2022-01-12 19:24:01 +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 705a6f7fbf 删除类型 2022-01-12 18:00:56 +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 e64f399370 change websocket client to context manager 2021-12-26 13:45:26 +08:00
yanyongyu 7ebae277d1 🔥 remove unused import 2021-12-25 17:44:53 +08:00
yanyongyu 9b2fa46921 ✏️ add typing 2021-12-21 18:22:14 +08:00
yanyongyu c2c3d5ef4b add test cases 2021-12-20 00:28:02 +08:00
yanyongyu b64b02bb45 ✏️ add missing annotationo 2021-12-07 02:16:18 +08:00
yanyongyu d80c02ae46 ♻️ rewrite adapter abc class 2021-12-06 22:19:05 +08:00
yanyongyu a6112fdf64 support for mock api result (resolve #605) 2021-11-28 02:34:01 +08:00
yanyongyu a98d98cd12 🎨 format code using black and isort 2021-11-22 23:21:26 +08:00
yanyongyu e12e18022b ⚗️ template support raw string 2021-10-04 22:00:32 +08:00
Mix b9c91dc5c3 💡 add document for extended format spec 2021-10-03 16:39:43 +08:00
Mix 6b79106cd1 support use MessageSegment method as template format spec 2021-10-03 16:26:55 +08:00
Mix c8a8ff28ec support use Message object as message template 2021-10-02 14:05:54 +08:00
yanyongyu 92a411e3b4 🎨 isort format code 2021-09-27 00:19:30 +08:00
StarHeartHunt 5cd61c09a8 🚨 re-export base adapter init
according to pep484
2021-09-18 20:22:38 +08:00
yanyongyu 44d13acc81 ♻️ rename message formatter into template 2021-09-11 19:48:46 +08:00
yanyongyu b635d01519 💥 matcher prompt support message formatter 2021-09-11 13:45:03 +08:00
yanyongyu 3fa75b1c78 ♻️ separate adapter abstract classes 2021-08-29 00:24:28 +08:00
yanyongyu 5cf665fa21 🐛 fix format field error 2021-08-28 19:42:32 +08:00
yanyongyu 116f16b470 🐛 fix stringify when formatting 2021-08-28 19:39:54 +08:00
Mix 1c73a9adfa 💡 add comment to describe template formatter usage 2021-08-27 19:13:08 +08:00
yanyongyu 7cfdc2dd37 🔥 use Any for format type 2021-08-27 15:08:26 +08:00
yanyongyu 58d10abd32 🎨 change typing for formatter 2021-08-27 14:46:15 +08:00
Mix f0bc47ec5e Add message template formatter
ref: https://github.com/nonebot/discussions/discussions/27
2021-08-27 02:52:24 +08:00
yanyongyu 8e97a84ad8 💥 correct message segment mapping funcs 2021-08-04 19:35:03 +08:00
yanyongyu 3564228183 🐛 fix message segment mapping error 2021-08-04 19:11:59 +08:00
yanyongyu 04b3fda40c cqhttp support forward websocket 2021-07-19 23:46:29 +08:00
yanyongyu 0c5bbdaabe 🎨 remove linter error 2021-06-19 15:18:57 +08:00
yanyongyu cd12718dcb 🐛 update mirai adapter 2021-06-18 01:23:13 +08:00
yanyongyu b2f21ab974 🎨 fix message typing error 2021-06-17 01:07:19 +08:00
yanyongyu 8e6f8fada8 🐛 fix import recursion when same plugin and file name (fix #401) 2021-06-15 01:13:05 +08:00
yanyongyu ddd96271b0 🎨 improve typing 2021-06-14 19:52:35 +08:00
StarHeartHunt c0d78449be support custom response 2021-06-14 02:06:37 +08:00
yanyongyu 918b375ece 💥 drop self_id call_api support 2021-05-24 16:49:27 +08:00
yanyongyu f8ad9ef278 ⚗️ support segment typing for message 2021-05-10 00:54:15 +08:00