Commit Graph

742 Commits

Author SHA1 Message Date
yanyongyu
c993f15bca ⚗️ add ws connection hook 2020-12-28 13:36:00 +08:00
yanyongyu
2d63eb32e1 🚑 hotfix due to cq security problem 2020-12-28 00:24:18 +08:00
yanyongyu
2ae76ff78b ⚗️ new stop propagation method 2020-12-24 22:19:08 +08:00
yanyongyu
41663e1b08 🚧 update cqcode 2020-12-23 17:12:53 +08:00
yanyongyu
ab256e57b1 🐛 fix missing escape in builtin plugin #117 2020-12-22 20:12:00 +08:00
yanyongyu
44a15d684b ✏️ fix typo 2020-12-21 19:32:58 +08:00
yanyongyu
bc459b5ff4 🐛 fix non text cqcode not unescaped 2020-12-21 16:19:02 +08:00
yanyongyu
e44cde0600 add test case 2020-12-20 12:09:30 +08:00
yanyongyu
1b00fe7921 add state factory support #113 2020-12-20 11:59:51 +08:00
yanyongyu
4ec4adf003 💡 add adapter docstring 2020-12-19 15:30:34 +08:00
yanyongyu
a88a2f4a4f 🔊 revert log string 2020-12-19 14:16:47 +08:00
yanyongyu
a539fd0062 🔊 improve adapter not found log 2020-12-19 11:20:41 +08:00
yanyongyu
83addf045f improve actionfailed info 2020-12-19 00:50:17 +08:00
yanyongyu
00305a8436 🎨 change event log 2020-12-19 00:26:24 +08:00
yanyongyu
799144e64d finish typing change 2020-12-17 21:09:30 +08:00
yanyongyu
6bd69e6708 🐛 fix typing 2020-12-17 01:52:16 +08:00
yanyongyu
784bc7b0cf ⚗️ new dynamic handler args 2020-12-16 23:13:00 +08:00
yanyongyu
a63a5fea3c 🐛 fix invalid cq code catched 2020-12-16 13:35:34 +08:00
yanyongyu
e4377faa67 💄 update docs 2020-12-13 12:53:33 +08:00
yanyongyu
12ef3e7bf1 🚧 update cqhttp adapter event 2020-12-13 12:53:16 +08:00
yanyongyu
3d4adaa444 ⚗️ auto import plugin when require 2020-12-13 12:19:01 +08:00
yanyongyu
6c08982ca7 🚧 update process 2020-12-11 16:29:12 +08:00
yanyongyu
f4cea065d8 ✏️ fix validator 2020-12-10 21:33:51 +08:00
yanyongyu
72653c6116 🚧 update messages 2020-12-10 02:13:25 +08:00
yanyongyu
a57cd396fa 🚧 update cqhttp event parse 2020-12-10 00:39:43 +08:00
yanyongyu
783efeaf0e 🚧 add event parser 2020-12-09 19:57:49 +08:00
yanyongyu
2c97902f4e 🚧 update cqhttp bot 2020-12-09 17:51:24 +08:00
yanyongyu
2bc05b2576 🚧 update event models 2020-12-09 14:39:25 +08:00
yanyongyu
73bda494d9 🏗️ update cqhttp models 2020-12-09 13:20:14 +08:00
yanyongyu
ddf044d6d3 🏗️ add model for cqhttp 2020-12-09 11:13:37 +08:00
yanyongyu
f220a01a30 📝 update doc 2020-12-07 22:15:26 +08:00
yanyongyu
f8d0b691ec 📝 update docs typing 2020-12-07 14:09:43 +08:00
yanyongyu
e0d44f3fa7 📝 update api docs 2020-12-07 00:52:26 +08:00
yanyongyu
a420af75fc 🐛 fix type checking for bot 2020-12-07 00:31:14 +08:00
yanyongyu
6b3f6a46e6 🎨 impove typing 2020-12-07 00:06:09 +08:00
yanyongyu
629eed08b6 🎨 update typing support 2020-12-06 02:30:19 +08:00
yanyongyu
3345142db2 🔥 remove useless noreturn 2020-12-05 20:32:38 +08:00
Mix
b1ab5d91a4
🐛 Fix some wrong type hint 2020-12-05 17:19:23 +08:00
yanyongyu
621f93f75a 📝 update nonebot docstring 2020-12-05 01:43:58 +08:00
yanyongyu
f6806c1d55 test matchergroup 2020-12-04 01:55:03 +08:00
yanyongyu
5b42454a55 add matcher group for plugin #90 2020-12-04 01:41:23 +08:00
Ju4tCode
0838cdfbe7
🎨 improve format 2020-12-03 19:24:55 +08:00
Ju4tCode
71c5cdc445
revert plain text 2020-12-03 19:12:46 +08:00
Artin
be244f4538 🐛 Fix Message._construct error 2020-12-03 18:47:58 +08:00
yanyongyu
afd01796aa 🚧 update ding adapter 2020-12-03 17:08:16 +08:00
yanyongyu
dc691889e3 🎨 improve cqhttp 2020-12-03 16:04:14 +08:00
yanyongyu
9658e446e5 🏗️ change exception structure 2020-12-03 15:07:03 +08:00
yanyongyu
7116532081 🚧 add exception 2020-12-03 13:22:12 +08:00
Artin
3638da7f2d 🐛 Fix ding adapter exception 2020-12-03 12:22:45 +08:00
Artin
e718f25c3f 🏷️ 完善 typing 及注释 2020-12-03 12:08:09 +08:00
Artin
8c5c02f040 🏷️ Update BaseEvent typing 2020-12-03 01:46:55 +08:00
Artin
edb4458031 Add ding adapter 2020-12-03 01:02:09 +08:00
Artin
f332199baa ♻️ Encapsulation MessageSegment
close: #93
2020-12-03 00:57:02 +08:00
Artin
8cda1b5417 ♻️ Split adapter by category 2020-12-03 00:56:25 +08:00
yanyongyu
064ed81758 📝 update adapter connection guide 2020-12-02 15:14:24 +08:00
yanyongyu
8601c61cd8 💄 update log style 2020-12-02 13:25:57 +08:00
yanyongyu
0738b275a5 💥 remove builtin adapter auto register 2020-12-02 13:17:27 +08:00
yanyongyu
ad994f04fc 💬 update cqhttp links 2020-12-01 11:03:08 +08:00
yanyongyu
d624f13f96 💥 remove nonebot test auto init 2020-12-01 10:44:58 +08:00
yanyongyu
38d502f7f5 💥 remove built-in scheduler support 2020-12-01 10:28:03 +08:00
yanyongyu
0775a232ce ✏️ fix docstring typo 2020-11-30 12:43:44 +08:00
yanyongyu
e5463cc564 🎨 format docstring 2020-11-30 11:08:00 +08:00
yanyongyu
d70f622a24 💡 update docstring 2020-11-21 20:50:33 +08:00
yanyongyu
9373bd09ed ⚗️ add export require option 2020-11-21 20:40:09 +08:00
yanyongyu
71fad44d23 get plugin func 2020-11-21 18:33:35 +08:00
yanyongyu
7b15d0d01f 🚑 fix not delete empty text 2020-11-20 12:53:31 +08:00
yanyongyu
7fdddf4d8f ✏️ fix typo 2020-11-20 01:37:53 +08:00
yanyongyu
a734790bcf 🐛 fix remain space after reply 2020-11-20 01:07:24 +08:00
yanyongyu
a5935e77c9 🚑 fix matcher check 2020-11-19 23:18:03 +08:00
yanyongyu
0b6a1ca1a4 🐛 fix #69 stop running expired matcher 2020-11-19 22:04:44 +08:00
Ju4tCode
e9127f505a
🔀 Merge pull request #67
dynamic propagation block
2020-11-19 21:36:52 +08:00
yanyongyu
49ad65f449 🐛 fix #66 resolve reply message 2020-11-19 21:21:54 +08:00
Muchan
8b3af9fb47 feat(message): 传递matcher抛出的StopPropagation 2020-11-19 20:53:28 +08:00
yanyongyu
9e1eee166b 🐛 fix index error when check to me 2020-11-19 13:57:49 +08:00
synodriver
03c7b59df5 修复了at机器人时的bug 2020-11-19 13:07:02 +08:00
hemengyang
31123b0573 修复阻止事件传递信号无效的问题 2020-11-18 14:43:12 +08:00
yanyongyu
872df975f5 ✏️ fix rst typo 2020-11-16 19:57:49 +08:00
yanyongyu
1c31453ba0 🔥 remove unused exception 2020-11-16 19:39:51 +08:00
yanyongyu
b3e6d1c803 💡 add message docstring 2020-11-16 15:06:37 +08:00
yanyongyu
829f085340 🐛 fix coding error 2020-11-16 12:35:04 +08:00
yanyongyu
6986232290 🎨 change temp matcher process #50 2020-11-16 11:25:42 +08:00
yanyongyu
730cb82eb7 🥚 add __version__ 2020-11-15 16:18:23 +08:00
yanyongyu
bc00c1be82 💡 add message docstring 2020-11-13 17:15:45 +08:00
yanyongyu
781ec1ef67 🚑 fix index error in cqhttp check to_me 2020-11-13 16:51:14 +08:00
yanyongyu
28e3177e60 💡 update source docstring #46 #49 2020-11-13 01:46:26 +08:00
yanyongyu
b2a2234d5c 🎨 change permission check from driver into adapter #46 2020-11-11 15:14:29 +08:00
Artin
c3c2c7935d ♻️ add adapters/cqhttp directory 2020-11-10 17:34:02 +08:00
yanyongyu
286036a936 ✏️ fix module docstring 2020-11-10 14:29:50 +08:00
yanyongyu
9b3dffaab9 ⚗️ add prompt format support 2020-11-09 16:34:14 +08:00
yanyongyu
746b608d10 ⚗️ add pre and post processor #40 2020-11-07 17:35:44 +08:00
yanyongyu
9d7da873c4 📝 add plugin load doc 2020-11-07 12:36:47 +08:00
yanyongyu
d9ea95c67e 🚑 fix message segment get 2020-11-01 19:20:18 +08:00
yanyongyu
70c7927006 💡 add docstring for cqhttp message 2020-10-30 16:49:31 +08:00
yanyongyu
89c3aa38a6 🎨 allow multi value for keyword rule 2020-10-30 16:26:04 +08:00
yanyongyu
06f20281a5 🔇 remove meta event logs #21 2020-10-29 17:06:07 +08:00
Ju4tCode
5d9f354209
🔀 Merge pull request #37 2020-10-28 13:49:53 +08:00
Ju4tCode
c3bd8ebf57
🚧 change result store 2020-10-28 13:45:54 +08:00
Ju4tCode
47f491039c
💡 update regex docstring 2020-10-28 13:23:48 +08:00
yanyongyu
dc5c35a9ed 💡 update command docstrinrg 2020-10-28 13:17:41 +08:00
rkroom
59a8bd8c97
add matched_string when rule regex
当使用正则匹配消息成功时,向state添加matched_string以保存匹配到的内容供接下来使用。
2020-10-26 17:18:26 +08:00
yanyongyu
5d08d53c27 👽 update auth header 2020-10-25 14:42:46 +08:00
yanyongyu
32388d070d 🎨 improve command implementation 2020-10-22 22:08:19 +08:00
yanyongyu
d9f8bf38c6 🐛 fix matcher group send 2020-10-22 00:00:29 +08:00
yanyongyu
24141b1a4b 🎨 remove shebang line #31 2020-10-20 22:40:16 +08:00
yanyongyu
308824d0b1 🐛 fix matcher group args parser 2020-10-20 00:01:26 +08:00
yanyongyu
7c17412106 💡 add plugin docstring 2020-10-18 15:04:45 +08:00
yanyongyu
26207f762b 🏷️ fix class inherit in pyi 2020-10-18 15:02:56 +08:00
yanyongyu
56c9c24dc6 add kwargs support for matcher send/finish/pause/reject 2020-10-17 19:50:25 +08:00
yanyongyu
1d79ac232f 🐛 fix missing param for on event 2020-10-16 15:12:15 +08:00
yanyongyu
0a64959973 💡 add driver docstring 2020-10-16 01:10:46 +08:00
yanyongyu
b4e0034876 💡 add driver docstring 2020-10-10 23:40:01 +08:00
yanyongyu
1377f7337d 🚑 fix message segment setitem 2020-10-09 00:57:30 +08:00
yanyongyu
f164d85c5c 🐛 fix message segment getitem 2020-10-09 00:10:50 +08:00
yanyongyu
ce758a2231 📝 add nonebot quick import doc 2020-10-08 21:36:57 +08:00
yanyongyu
1d31e646ad 🔇 reduce log for meta event #21 2020-10-08 21:25:13 +08:00
yanyongyu
927a963d4f 🐛 fix nickname 2020-10-06 22:29:05 +08:00
yanyongyu
727eef9a34 💡 add matcher docstring 2020-10-06 17:03:05 +08:00
yanyongyu
9f8d009309 add matcher.send method 2020-10-06 16:24:04 +08:00
yanyongyu
734d3cd333 💡 update docstring for several modules 2020-10-06 02:08:48 +08:00
yanyongyu
2e989b5fe1 💡 add matcher docstring 2020-10-05 23:10:20 +08:00
yanyongyu
781d0cf654 ⚗️ rewrite echo and say builtin plugin 2020-10-04 18:10:01 +08:00
yanyongyu
0a11bd3e8e ✏️ fix cqhttp sub_type typo 2020-10-04 16:27:58 +08:00
yanyongyu
2574ef3e7a 💡 add message docstring 2020-10-03 18:18:43 +08:00
yanyongyu
c7f1859d99 🐛 fix white space before plain text #18 2020-10-03 14:56:38 +08:00
yanyongyu
d71260ed68 🐛 fix group attrs 2020-10-02 00:28:53 +08:00
yanyongyu
3e4dc1a123 💡 add adapter docstring 2020-10-01 23:52:56 +08:00
yanyongyu
1016986663 🔖 Pre Release 2.0.0a2 2020-10-01 00:55:03 +08:00
yanyongyu
ef29280585 💡 add escape_tag docstring 2020-10-01 00:39:44 +08:00
yanyongyu
921acff09e 🐛 fix logger escape tag #14 2020-09-30 18:01:31 +08:00
yanyongyu
edc3aadbb5 💡 add cqhttp event 2020-09-29 23:10:29 +08:00
yanyongyu
f3986ace51 💡 add cqhttp docstring 2020-09-29 22:33:08 +08:00
yanyongyu
0eafedefa1 🏷️ update cqhttp.pyi 2020-09-29 22:32:15 +08:00
yanyongyu
00f22e5f05 🏷️ update pyi files 2020-09-28 12:45:55 +08:00
yanyongyu
e13561c374 🏷️ add typing for plugin 2020-09-28 00:09:12 +08:00
yanyongyu
2921ba0120 add command alias/group test 2020-09-27 23:52:03 +08:00
yanyongyu
e0cba7c20c 🎨 add command group to entry file 2020-09-27 18:20:39 +08:00
yanyongyu
2042097f83 🎨 change args into optional 2020-09-27 18:05:13 +08:00
yanyongyu
3dc95b904f ⚗️ add command alias and group #11 2020-09-27 17:55:28 +08:00
yanyongyu
ecbe465232 ⚗️ add matcher group #11 2020-09-27 13:34:16 +08:00
yanyongyu
2e87c40434 🐛 fix error ws closing 2020-09-27 12:37:15 +08:00
yanyongyu
3467eb3c29 🚑 (Close #12)fix matcher key parser 2020-09-26 17:36:04 +08:00
yanyongyu
457fdfb057 🏷️ update cqhttp pyi 2020-09-26 16:33:57 +08:00
yanyongyu
44fef77288 🚑 fix matcher key parser 2020-09-26 16:33:30 +08:00
yanyongyu
bbeea86fd5 🏷️ update pyi 2020-09-26 14:40:08 +08:00
yanyongyu
e68ce8b3a9 🐛 fix args_parser: dont ignore if exists 2020-09-22 11:28:38 +08:00
yanyongyu
342d879add 📝 add matcher tutorial 2020-09-22 00:18:57 +08:00
yanyongyu
7207b8c8d7 ✏️ fix typo 2020-09-17 18:21:13 +08:00
yanyongyu
44722a11d3 🔒 fix wrong auth check 2020-09-15 14:48:15 +08:00
yanyongyu
50601934b9 🔧 load extra config value from env if empty in file 2020-09-14 22:38:03 +08:00
yanyongyu
adc69a2763 🔊 fix error uncatched in bot.handle_message 2020-09-14 21:51:40 +08:00
yanyongyu
c2badaec42 📝 add getting started guide 2020-09-14 21:40:05 +08:00
yanyongyu
fe35e8956b 💡 add permission docstring 2020-09-14 20:48:03 +08:00
yanyongyu
75df494de2 using set for rule and perm 2020-09-13 22:36:40 +08:00
yanyongyu
b36acc94f1 🐛 fix reply 2020-09-13 15:21:49 +08:00
yanyongyu
f79eabdc61 💡 add rule utils docstring 2020-09-13 13:01:23 +08:00
yanyongyu
ce2700c1d2 💡 add utils docstring 2020-09-13 00:43:31 +08:00
yanyongyu
60c70804ed 💡 add scheduler docstring 2020-09-13 00:18:31 +08:00
yanyongyu
4a890298db add apscheduler 2020-09-12 13:34:36 +08:00
yanyongyu
bd7aaa94c6 🐛 fix: strip after at bot 2020-09-10 18:31:53 +08:00
yanyongyu
6d37417d21 🏗️ make event handling in background 2020-09-08 15:55:53 +08:00
yanyongyu
b3a796e726 🐛 fix: key erro when command not found 2020-09-08 14:36:21 +08:00
yanyongyu
e0e23283c1 🏗️ store plugin info as dataclass 2020-08-29 22:32:40 +08:00
yanyongyu
f5b655ef71 🔧 change command and add builtin plugin 2020-08-29 21:59:36 +08:00
yanyongyu
def5caedbc check for reply 2020-08-28 11:54:21 +08:00
yanyongyu
43bd9d0a96 🔊 add more logs 2020-08-27 16:43:58 +08:00
yanyongyu
858098b946 🔊 change log types 2020-08-27 13:27:42 +08:00
yanyongyu
1f09023f66 🔊 change logger into loguru 2020-08-26 22:55:42 +08:00
yanyongyu
777343ac1a 🏷️ Add typing for cqhttp api 2020-08-26 17:47:36 +08:00
yanyongyu
24e03ed0e7 ⬆️ Update to cqhttp v11 2020-08-26 14:43:27 +08:00
yanyongyu
cef3a8236e add more logs 2020-08-25 18:02:18 +08:00
yanyongyu
c5ea8bc1c3 add contextvars and fix mutable default args 2020-08-25 15:23:10 +08:00
AsakuraMizu
60916434d6 Merge branch 'master' of https://github.com/nonebot/nonebot2 into fix_command_type 2020-08-24 23:11:53 +08:00
yanyongyu
6412840376 merge bug fix 2020-08-24 18:11:19 +08:00
yanyongyu
eaa9b98bd9 fix several bugs 2020-08-24 17:59:36 +08:00
AsakuraMizu
2e7c86dc23 fix command type 2020-08-23 20:01:58 +08:00
water_lift
d68fbdbacf
add py.typed 2020-08-23 19:17:41 +08:00
yanyongyu
a895089a8b fix some bug 2020-08-23 10:45:26 +08:00
yanyongyu
87a848d8c3 fix matcher decos 2020-08-22 15:22:46 +08:00
yanyongyu
5871330492 fix fastapi run bug 2020-08-22 14:11:04 +08:00
yanyongyu
e86362572b add check for self_id 2020-08-21 16:59:41 +08:00
yanyongyu
b99c9688e2 fix ws reverse 2020-08-21 15:42:33 +08:00
yanyongyu
c1d0eae34b make matcher running concurrently and add to me checking 2020-08-21 14:24:32 +08:00
yanyongyu
c01d3c7ca1 add matcher type 2020-08-20 17:15:05 +08:00
yanyongyu
26c697f5e4 add auth check and config docs 2020-08-20 16:34:07 +08:00
yanyongyu
02ca49f6d0 add log and config docs 2020-08-20 15:07:05 +08:00
yanyongyu
1d982fc77b add typing docs 2020-08-19 23:00:31 +08:00
yanyongyu
5e3d1c76cc add nonebot.typing docs 2020-08-19 20:29:37 +08:00
yanyongyu
e523aa8d89 add doc for __init__.py 2020-08-18 17:25:00 +08:00
yanyongyu
76cfe34fa5 add some matcher function like nb1 session 2020-08-18 11:28:33 +08:00
yanyongyu
6435e29e8b add permission and command 2020-08-17 16:09:41 +08:00
yanyongyu
865fd6af4c fix nonebot-test 2020-08-15 17:47:50 +08:00
yanyongyu
c4a5cfb513 change plugin load 2020-08-15 17:22:10 +08:00
yanyongyu
1dcc43161a change rule 2020-08-14 17:41:24 +08:00
yanyongyu
04f4d5028e fix config and import nonebot-test 2020-08-13 18:18:00 +08:00
yanyongyu
0eb5f51d2c add driver type prop 2020-08-13 15:56:09 +08:00
yanyongyu
e7f9b2c229 websocket api 2020-08-13 15:23:04 +08:00
yanyongyu
879904a0f5 change event 2020-08-11 16:54:45 +08:00
yanyongyu
b32d4a24d1 add startup shutdown deco 2020-08-11 10:44:05 +08:00
yanyongyu
2d90c35df6 change Event 2020-08-10 14:50:12 +08:00
yanyongyu
9e33a605a6 add types 2020-08-10 13:06:02 +08:00
yanyongyu
00913f1a8f add typings 2020-08-08 23:08:38 +08:00
yanyongyu
332aac6497 change typing 2020-08-07 17:51:57 +08:00
yanyongyu
f2b6f08599 change typing manage 2020-08-07 17:05:08 +08:00
yanyongyu
950dbb1115 add support for go-cqhttp cq code 2020-08-07 11:56:35 +08:00
yanyongyu
5186231869 change config load method to support custom configs 2020-08-07 11:18:02 +08:00
yanyongyu
10221520d9 add matcher expire support 2020-08-06 17:54:55 +08:00
yanyongyu
f1e62feb26 merge changes 2020-08-06 17:22:56 +08:00
yanyongyu
41713f0645 change coolq into cqhttp 2020-08-06 17:19:06 +08:00
yanyongyu
b3f82f3f22 add http api 2020-08-01 22:03:40 +08:00
yanyongyu
a39c2e223a change rule and event handle 2020-07-25 12:28:30 +08:00
yanyongyu
9355ed4baf add message segment for coolq 2020-07-18 18:18:43 +08:00
yanyongyu
3dbd927a2a add websocket class and coolq message segment 2020-07-15 20:39:59 +08:00
yanyongyu
d616290626 connect driver-adapter-matcher 2020-07-11 17:32:03 +08:00
yanyongyu
ea21d6ffcc add fastapi routes, adapters 2020-07-05 20:39:51 +08:00
yanyongyu
4d242875d2 add fastapi driver, config 2020-07-04 22:51:10 +08:00
yanyongyu
7529559d24 plugin load 2020-06-30 10:13:58 +08:00
yanyongyu
16099b2c35 clean up files 2020-06-24 21:57:15 +08:00
yanyongyu
ed404901ca update matcher 2020-06-04 14:29:38 +08:00
yanyongyu
761d725aed change Matcher class 2020-05-05 16:11:05 +08:00
yanyongyu
06b7ef2a45 init version 2 2020-05-02 20:03:36 +08:00
yanyongyu
51a2ca0841 fix remove command and update api docs 2020-04-27 11:38:59 +08:00
yanyongyu
39804852a8 fix plugin reload and update docs 2020-04-22 20:38:51 +08:00
yanyongyu
4794a4bacb fix import 2020-04-22 13:55:50 +08:00
yanyongyu
4f9a9136f9 move decorators to plugin module 2020-04-20 13:50:38 +08:00
yanyongyu
9fbd09331c fix docstring missing for nlp and event handler 2020-04-11 23:04:31 +08:00
yanyongyu
a67fa5107c fix docstring missing for command handler 2020-04-11 22:53:30 +08:00
yanyongyu
8ae248738e add more manage func 2020-04-11 14:56:39 +08:00
yanyongyu
52b2f635ad add manager objects 2020-04-07 21:58:10 +08:00
Richard Chien
6b288f0e60 adjust on_websocket_connect 2020-03-16 21:04:43 +08:00
Richard Chien
cfce94e890 add on_startup and on_websocket_connect 2020-03-16 20:50:20 +08:00
Richard Chien
0ac6a03f0a restore Context_T for compatibility 2020-03-16 20:24:50 +08:00
Richard Chien
035782715f adjust log content 2020-03-16 16:55:56 +08:00
Richard Chien
9b54af70e6 rename session.ctx to session.event for consistency 2020-03-15 22:48:22 +08:00
Richard Chien
c366e6c950 fix docstring of command handler function 2020-03-14 22:45:17 +08:00
Richard Chien
0b7980a4a4 reformat 2020-02-24 14:12:51 +08:00
Mix
22462c8ed6
Update __init__.py
把格式改回来
2020-02-22 18:09:21 +08:00
Mix
bdb64569e7
Update __init__.py
修复CommandSession.pause和CommandSession.finish在多线程环境下可能运行出错的bug
2020-02-22 10:03:50 +08:00
Mix
6166ee10f5
Update message.py
删掉一个不知道从哪冒出来的一段
2020-02-21 18:48:55 +08:00
Mix
4bb1ea7c35
Update message.py
不好意思犯了脑抽错误……
2020-02-21 18:37:19 +08:00
Mix
cd7749936e
Update message.py
优化日志输出多行消息的方法,使得收到的消息显示在一行中,便于日志记录
2020-02-21 18:20:57 +08:00
Richard Chien
d363cea58f Warn if failed to register command 2020-02-14 17:03:54 +08:00
Richard Chien
f7e4223dc6 Support str type for aliases 2020-02-14 16:44:22 +08:00
Richard Chien
9a818f781b Reformat 2020-02-14 11:05:38 +08:00
hemengyang
4d1d9c50f3
Update helpers.py
Fix ValueError: too many values to unpack (expected 2)
2020-02-14 09:33:46 +08:00
Richard Chien
76f1dfc2a5 Fix #98 2020-02-10 13:26:33 +08:00
Richard Chien
3d030fdd03 Escape *args in render_expression, fix #86 2020-02-10 12:43:04 +08:00
Richard Chien
932d178c15 Fix compatibility with Quart 0.11 2020-02-10 12:17:00 +08:00
Richard Chien
c2de849ea7
Update natural_language.py 2019-07-01 09:59:49 +08:00
Yorushika
a3c40092d9
add type check for argument keywords 2019-06-27 14:36:15 +08:00
Richard Chien
569b3b5803 Add missing type hints 2019-02-22 17:49:52 +08:00
Richard Chien
5986afb200 Add max validation failures check of command arguments 2019-02-21 22:23:43 +08:00
Richard Chien
635fc70756 Fix bug of handle_cancellation() 2019-02-21 22:20:31 +08:00
Richard Chien
ab4d12d214 Add argfilter type "controllers" 2019-02-21 21:57:05 +08:00
Richard Chien
838213d438 Check nickname before parsing command, allowing users call commands with nickname instead of explicit "at" 2019-02-21 21:41:17 +08:00
Richard Chien
fdc7327a0c Allow no space nor comma between nickname and message body 2019-02-14 21:56:28 +08:00
Richard Chien
c1486ebbbe Move scheduler staring to Quart's before serving hook 2019-02-03 11:49:59 +08:00
Richard Chien
bfba4d1bd4 Remove a useless parameter 2019-02-02 21:22:14 +08:00
Richard Chien
9190b65b6d Allow positional arguments while rendering expressions 2019-02-01 19:39:09 +08:00
Richard Chien
7860c02973 Fix bug of IntentCommand 2019-02-01 19:38:50 +08:00
Richard Chien
00ff96aed0 Fix bug of context_id() 2019-01-26 20:41:22 +08:00
Richard Chien
7713dc3be8 Update builtin plugins 2019-01-26 16:43:02 +08:00
Richard Chien
0ecaa57230 Fix detail behavior 2019-01-25 22:30:35 +08:00
Richard Chien
189cf23720 Adjust 2019-01-25 21:55:07 +08:00
Richard Chien
bd1c272eec Adjust type hints 2019-01-25 19:11:18 +08:00
Richard Chien
78d48fb163 Rearrange some code 2019-01-25 18:51:42 +08:00
Richard Chien
d88eda7c66 Revert "Add deprecate comment"
This reverts commit 366d7d9b
2019-01-25 18:30:44 +08:00
Richard Chien
366d7d9bfd Add deprecate comment 2019-01-25 18:29:48 +08:00
Richard Chien
ca49aa7c98 Add default behavior while there is no args_parser_func 2019-01-25 16:37:50 +08:00
Richard Chien
128cb8ce29 Adjust 2019-01-25 16:25:00 +08:00
Richard Chien
347318aaaa Use stub file to keep class CommandGroup clean 2019-01-25 15:29:30 +08:00
Richard Chien
ae35c2e08a Keep send_kwargs through get() and argument filter 2019-01-25 14:03:57 +08:00
Richard Chien
1fd740d223 Make current_arg_text and current_arg_images readonly properties 2019-01-25 13:48:28 +08:00
Richard Chien
73838ac46a Add comment 2019-01-25 13:29:15 +08:00
Richard Chien
368b6290b3 Add default validation failure expression config 2019-01-25 12:59:06 +08:00
Richard Chien
0079cd1876 Use functions to implement validators 2019-01-25 12:57:28 +08:00
Richard Chien
f8ecc7bba1 Implement argument filters 2019-01-25 00:14:30 +08:00
Richard Chien
6b6daf7235 Add State_T 2019-01-25 00:13:53 +08:00
Richard Chien
41803be7d8 Import context_id() to nonebot module 2019-01-24 22:33:41 +08:00
Richard Chien
f1aa28e14b Update comments 2019-01-21 22:01:47 +08:00
Richard Chien
35ba57c059 Add class IntentCommand to replace class NLPResult 2019-01-21 21:31:26 +08:00
Richard Chien
0a3d07b70e Fix to_me while in a session 2019-01-21 10:38:48 +08:00
Richard Chien
9359904fe7 Fix unhashable __plugin_usage__ bug 2019-01-09 21:29:10 +08:00
Richard Chien
3ab3904d60 Allow "at" segment at the end of messages 2019-01-06 21:38:48 +08:00
Richard Chien
06553c454b Log self_id while receiving messages 2019-01-05 22:41:15 +08:00
Richard Chien
16c15bca41 Add BaseSession.self_id property 2019-01-05 22:36:47 +08:00
Richard Chien
245c0db3c7 Add return value to Session.send() 2019-01-05 21:36:57 +08:00
Richard Chien
07aa0b81f7 Update plugin module 2019-01-05 21:03:36 +08:00
Richard Chien
2e2ac2304c Add comment 2019-01-03 20:04:31 +08:00
Richard Chien
17ce1e8e67 Improve Plugin class 2019-01-03 20:03:14 +08:00
Richard Chien
a20996d83a Add get_loaded_plugins() function 2019-01-03 19:58:56 +08:00
Richard Chien
a2469b45f4 Adjust kill_current_session() function 2018-12-27 20:33:28 +08:00
Richard Chien
663797219a Rename package to "nonebot" 2018-12-27 20:23:45 +08:00