Commit Graph

4929 Commits

Author SHA1 Message Date
Him188
3c38a3b9c0 Extract SingleMessage and ConstrainSingle to separate files, update docs 2021-02-05 22:10:06 +08:00
Eritque arcus
3a8003057a
Update README.md (#960) 2021-02-03 21:57:13 +08:00
Him188
14258b8212 Add task cleanExceptIntellij 2021-02-03 21:28:04 +08:00
Him188
af72c4ec25 2.3.2 2021-02-03 20:24:25 +08:00
Him188
3b06df6bc5 Simplify EventChannel.parentScope 2021-02-03 20:23:10 +08:00
Him188
1205d95186 Fix EventChannel.parentScope missing parentJob 2021-02-03 19:45:45 +08:00
Him188
842549fd44 Fix the issue EventChannel.context loses intercepted, fix #956 2021-02-03 19:40:46 +08:00
Him188
012d9d6e71 Fix uninitialized property exception when Bot.closed called before Bot.login 2021-02-03 19:23:12 +08:00
Him188
9597a70f58 Add test testAsChannel for EventChannel 2021-02-03 19:10:06 +08:00
Him188
d4cc4845ba Fix inappropriate coroutine suspension in java bridges in EventChannel 2021-02-03 19:09:30 +08:00
Karlatemp
10eb7a452f
Fix exception logging in event processing 2021-02-03 18:57:23 +08:00
高厉害
62303e679f
add drinkal/Mirai-js (#957) 2021-02-03 18:03:36 +08:00
Him188
41bbef98ad 2.3.1 2021-02-03 15:49:27 +08:00
Him188
ea895db70c 2.3.0 2021-02-03 13:15:23 +08:00
Him188
2a7c1e8631 Merge remote-tracking branch 'mirai/dev' into dev 2021-02-03 12:26:52 +08:00
Him188
b5d5f3c922 Add more tests for EventChannel:
- testFilterException
- testExceptionInSubscribe
2021-02-03 12:26:38 +08:00
Him188
0bbea5706f Fix EventChannel.filter and .filterIsInstance when chained, fix #953 2021-02-03 11:41:05 +08:00
Him188
5b80df7b3d
Merge pull request #952 from mamoe/fix_polymorphic_serializaiton
Fix polymorphic serializaiton
2021-02-03 10:51:01 +08:00
Him188
c261b8b00e Remove community-supported SDK Nambers/MiraiCP for license issue 2021-02-03 10:45:10 +08:00
StageGuard
875b9909b5 Remove community-supported SDK StageGuard/mirai-rhinojs-sdk 2021-02-03 10:45:09 +08:00
yanyongyu
1d3129d4d6 Update community-supported SDK NoneBot descriptions: Add both Mirai Http and OneBot http 2021-02-03 10:42:13 +08:00
Him188
b9e5c15bdb Add polymorphic serialization tests 2021-02-03 10:39:36 +08:00
Him188
2e91ae0d7f Revise MessageSerializers.registerSerializer, fix #951:
- Don't register contextual serializer
- Register polymorphic serializers to all superclasses inheriting SingleMessage
2021-02-03 10:39:36 +08:00
Him188
a834916f3c Add equals and hashCode for RichMessageOrigin 2021-02-03 10:39:36 +08:00
yanyongyu
4c0e78b3f8 Add community-supported SDK NoneBot, close #943 2021-02-03 10:25:24 +08:00
Him188
c91835bf5e Revert "Add community-supported SDK NoneBot, close #943"
This reverts commit 652dd0ec
2021-02-03 10:21:13 +08:00
Him188
652dd0ec36 Add community-supported SDK NoneBot, close #943 2021-02-03 10:18:46 +08:00
Him188
66ef872962
Merge pull request #945 from mamoe/parse_long_message
Redesign message transformers and support refining, support long and forward messages
2021-02-03 09:37:33 +08:00
Him188
4990c40a37 Add RichMessageOrigin.Key.SERIAL_NAME 2021-02-03 09:26:46 +08:00
Him188
35a75df932 Fix MusicShare serial name, add MusicShare.Key.SERIAL_NAME 2021-02-03 09:24:48 +08:00
Him188
54050523c3 Generalize RichMessageOrigin, add origin and kind. Add RichMessageKind. #950 2021-02-03 09:20:33 +08:00
Him188
e381a2b33f Ignore unrecognized message types on messageToElems transformation 2021-02-03 09:20:33 +08:00
Karlatemp
b659d55fec Support forward message refinement, close #623 2021-02-03 08:09:57 +08:00
Karlatemp
d7272e7e9a Fix resource download:
- fix download/upload logging
- add retry fro single server download
2021-02-03 08:09:57 +08:00
Him188
dd08c8815b apiDump 2021-02-03 08:09:57 +08:00
Him188
f2fe94ed67 Rename LongMessageOrigin to RichMessageOrigin 2021-02-03 08:09:57 +08:00
Him188
cd146e5976 Fix forward and long detect 2021-02-03 08:09:57 +08:00
Him188
82b355a6c6 Fix download url 2021-02-03 08:09:57 +08:00
Him188
1e95c43ff6 Add LongMessageOrigin and extract public api IMirai.downloadLongMessage 2021-02-03 08:09:57 +08:00
Him188
de8e6469e0 Support long message refinement, close #692 2021-02-03 08:09:57 +08:00
Him188
1768872bab Rewrite message to struct conversions, add ReceiveMessageTransformer, for parsing long and forward messages in the future 2021-02-03 08:09:57 +08:00
Karlatemp
918007df9b
Fix image uploading; fix #944 2021-02-02 22:24:18 +08:00
Karlatemp
280e0655f1
toString of ConfigPushSvc.PushReq.PushReqResponse.ChangeServer 2021-02-02 22:10:16 +08:00
Karlatemp
66fe6f504a
Change ConfigPushSvc.PushReq awaiting timed out to 20s 2021-02-02 22:09:45 +08:00
Karlatemp
0b8b26f53f
Don't use SecurityRandom because Linux bug (#936, #941) 2021-02-02 12:21:21 +08:00
Karlatemp
9f8ca3a22a
Fix private image highway upload 2021-02-02 11:51:12 +08:00
Him188
fb05670239 Fix group recall for TIM PC 2021-02-02 11:36:05 +08:00
Him188
f26e0035b3 Remove 'inline' on MessageChain.recall due to compilation error 2021-02-02 11:01:43 +08:00
Him188
3ff7fa7db1 Decode service message as LongMessageInternal or ForwardMessageInternal if possible 2021-02-01 13:14:42 +08:00
Him188
5857d1b2ee Add MultiMsg.ApplyDown 2021-02-01 13:14:18 +08:00