Him188
46598d686c
Cleanup;
...
Use interface for JavaFriendly APIs;
Deprecate event responder in Bot in the favor of their member functions;
Deprecate `Bot.queryUrl(image: Image)`` in the favor of the extension `Image.queryUrl`
2020-05-16 14:14:21 +08:00
Him188
4cc814cda5
Annotate Bot.selfQQ
with @MiraiExperimentalAPI
2020-05-14 19:24:38 +08:00
Him188
f7533e3cd6
Fix #318
2020-05-11 14:32:52 +08:00
Him188
ba2213d5ae
Update error reporter
2020-05-11 12:13:20 +08:00
Him188
8f65a416cd
Extract events to separate files
2020-05-11 10:04:18 +08:00
Him188
1db7bba837
Make FriendEvent.bot final
2020-05-11 09:53:03 +08:00
Him188
5be7f2bb2d
Fix #315
2020-05-11 09:50:18 +08:00
Him188
06205cb69b
Improve Bot life cycle management, close #317
2020-05-10 15:41:08 +08:00
Him188
90c0c5c549
Optimize experimental API usages
2020-05-10 02:22:16 +08:00
Him188
346aecd68b
Enable progressiveMode
2020-05-09 22:23:02 +08:00
Him188
0f0ca8e2cc
Deprecate Bot.subscribe*
for better Coroutine life cycle management; Add docs
2020-05-09 20:11:25 +08:00
Him188
157bd3740c
Fix #298
2020-05-09 18:26:24 +08:00
Him188
bba66f3952
Fix 288
2020-05-09 18:05:08 +08:00
Him188
c299ed8986
Fix compilation, ignore VIP join notice
2020-05-09 17:19:40 +08:00
Him188
d16a699810
Fix BotFaceChangedEvent
, Add FriendFaceChangedEvent
2020-05-09 17:19:02 +08:00
Him188
51ced7b677
Ignore empty lines
2020-05-09 17:14:34 +08:00
Him188
40dd786f99
Ignore empty string and arrays and 0s in _miraiContentToString
2020-05-09 16:54:28 +08:00
Him188
786c9f3b23
Ignore 732
2020-05-09 16:18:56 +08:00
Him188
f795eeb782
Fix commandName
2020-05-09 16:14:23 +08:00
Him188
1e885dbf7a
Rearrange MessageSvc and OnlinePush
2020-05-09 16:11:29 +08:00
Him188
1c1a37a103
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/MessageSource.kt
2020-05-09 15:38:20 +08:00
Him188
e75888a6e9
Add binary-validator
2020-05-09 15:37:02 +08:00
ryoii
2f3c1b5d8f
BotFaceChangedEvent, closed #271
2020-05-07 22:09:37 +08:00
ryoii
869d2fafd6
Fix #309
2020-05-07 21:44:01 +08:00
Him188
a1322076fc
Improve network availability check
2020-05-07 10:45:19 +08:00
Him188
5cd3178c3f
Make Message.get
returns M?
instead of M
;
...
Deprecate `Message.getOrNull` in favor of `Message.get`;
Add `Message.getOrFail`
2020-05-06 12:38:30 +08:00
Him188
8ca4357eb8
Merge pull request #304 from mamoe/1.0.0
...
1.0.0
2020-05-05 16:10:32 +08:00
Him188
2d9db234d7
Introduce FileCacheStrategy
;
...
Rework `ExternalImage`, introduce `ReusableInput` for multiple attempts when uploading images;
Add `BotConfiguration.fileCacheStrategy`, defaults use cache system from host OS;
Introduce `DeferredReusableInput` for `*.toExternalImage` on JVM.
Deprecate `*.suspendToExternalImage` as no longer need to be suspend.
Open input only when required, close input after uploading files, fix #302
2020-05-05 16:09:32 +08:00
Him188
84cfe2626f
Remove all @SinceMirai("0.x.x")
2020-05-05 13:56:17 +08:00
Him188
4ee27f2069
Fix ambiguous message event names. Fix #299 .
...
Binary compatibility until 1.2.0.
Migrations:
- `MessagePacket` deprecated in favor of `MessageEvent`
- `MessagePacketBase` deprecated in favor of `MessageEvent`
- `ContactMessage` -> `MessageEvent`
- `FriendMessage` -> `FriendMessageEvent`
- `GroupMessage` -> `GroupMessageEvent`
- `TempMessage` -> `TempMessageEvent`
2020-05-05 13:55:01 +08:00
ryoii
01d1625302
Fix a possible bug
2020-05-05 13:45:25 +08:00
ryoii
5635509cbd
Calculate groupCode, fixes #301
2020-05-05 13:25:04 +08:00
Him188
1305709d3e
Extract JCE serialization to him188/jcekt. close #300
2020-05-04 14:48:01 +08:00
Him188
e5404b397b
Simplify MemberPermission comparing
2020-05-03 22:25:57 +08:00
ryoii
f61f3bd331
f88k receive file
2020-05-02 18:45:37 +08:00
Him188
73c700b4b7
Support protocol selecting
2020-05-02 18:42:51 +08:00
Him188
fbf4dd6bb2
Adjust filenames
2020-05-02 18:12:40 +08:00
Him188
6b5cbc3dd7
Implement new ExternalImage and image chunk strategy
2020-05-02 17:58:22 +08:00
Him188
2be325d781
Remove all deprecated APIs
2020-05-02 16:56:18 +08:00
ryoii
107a760d5e
Correct comment
2020-05-02 05:00:53 +08:00
ryoii
1dbeb44f5b
Support Group VoiceMessage receiving
2020-05-02 04:46:51 +08:00
Him188
9924d37e54
Misc improvements
2020-05-01 23:04:24 +08:00
Him188
1a4c3ba602
Simplify Image structure: deprecate online and offline classification.
2020-05-01 21:51:09 +08:00
Him188
15c50c1554
Add note
2020-05-01 16:04:44 +08:00
Him188
659cfa2288
Improve numbers in log
2020-05-01 15:40:01 +08:00
Him188
16c440433f
Introduce AbstractEvent
acting as all events' super class
2020-05-01 14:44:12 +08:00
Him188
4b62d64330
Fix boom
2020-04-29 18:47:35 +08:00
Him188
9fdc8cd929
Fix build
2020-04-29 18:20:41 +08:00
Him188
2501cbb59a
Ensure binary compatibility
2020-04-29 15:49:01 +08:00
Him188
50934f9b7d
Ensure binary compatibility until 1.1.0
2020-04-29 15:33:25 +08:00
Him188
e3084c5f7d
Deprecate XmlMessage
and JsonMessage
in favour of ServiceMessage
2020-04-29 12:14:40 +08:00
Him188
4840a57b4a
Transform VipFace as PlainText
2020-04-28 16:48:59 +08:00
Him188
9b4006222f
Rework re-init, fix #282
2020-04-28 16:35:03 +08:00
Him188
40b8cabd5f
Cleanup
2020-04-28 15:31:23 +08:00
Him188
20acc3c459
Support parsing VipFace
2020-04-28 15:25:43 +08:00
Him188
128125eec7
Support more poke messages
2020-04-28 14:59:57 +08:00
Him188
5be39d392a
Fix warning
2020-04-27 19:11:28 +08:00
ryoii
7fee308b11
Fix anonymous bug
2020-04-26 17:01:18 +08:00
ryoii
73923d46f6
Parse anonymous chat, close #277
2020-04-26 16:51:28 +08:00
ryoii
f77169b7eb
Merge remote-tracking branch 'origin/master'
2020-04-25 18:53:07 +08:00
ryoii
fb28435501
Fix: group code parse error for recall
2020-04-25 18:45:30 +08:00
Him188
c2388b101a
Merge remote-tracking branch 'origin/master'
2020-04-25 18:44:48 +08:00
Him188
cbfb0191a2
Fix member name on parsing group message
2020-04-25 18:44:35 +08:00
ryoii
227d4e51d4
Fix: group code parse error, close #246
2020-04-25 18:29:47 +08:00
Him188
56fc3aa88b
Add checks for empty message being sent
2020-04-25 13:14:57 +08:00
ryoii
15683a2661
Support query offline image url
2020-04-25 01:59:30 +08:00
ryoii
b3ea2faaae
Fix onlineImage url parse on long message, close #250
2020-04-25 01:36:15 +08:00
ryoii
a03848da30
Improve delete notify
2020-04-25 00:40:20 +08:00
ryoii
bb3944d5ae
Support handle bot invited into a group, close #259
2020-04-25 00:24:16 +08:00
ryoii
78b46ceabe
Fix: PacketFactory for MessageSvc.Del
2020-04-24 21:34:07 +08:00
ryoii
769b6ce207
Delete notify uniformly
2020-04-24 21:24:56 +08:00
ryoii
f5112aaac5
Fix: delete notify sent from tx server
2020-04-24 21:17:35 +08:00
Him188
c8e20800a0
Fix #263
2020-04-24 16:45:45 +08:00
Him188
09524da1e9
Add docs, rearrange implementations
2020-04-24 16:41:21 +08:00
Him188
077885465b
Add docs, rearrange implementations
2020-04-24 15:12:50 +08:00
Him188
b0fbb10150
Fix build
2020-04-24 09:13:58 +08:00
Him188
70f421aee8
Fix long message, unify logs
2020-04-23 21:56:29 +08:00
Him188
d584b765ab
Halt bot when failed with LoginFailedException
2020-04-23 21:47:48 +08:00
Him188
437f9db575
Unified Image suffix: .mirai
2020-04-23 20:37:01 +08:00
Him188
65f45d6c84
Fix unmodified nameCard
2020-04-23 19:36:09 +08:00
Him188
4a217d83a6
Fix #247
2020-04-23 19:08:59 +08:00
Him188
6f69497247
Rearrange highway image upload
2020-04-23 18:36:21 +08:00
Him188
8e8f91bbee
Send temp messages as friend messages if a target Member is also a friend
2020-04-23 18:36:04 +08:00
Him188
5b2ae6e9ad
Simplify Image structure, close #244
2020-04-23 17:10:21 +08:00
Him188
eb123bb3a9
Fix #242
2020-04-23 14:46:30 +08:00
Him188
3eb9745485
Fix #231 , fix #254
2020-04-23 14:32:00 +08:00
Him188
9531ed8a01
Fix build
2020-04-23 14:21:15 +08:00
Him188
83f721c59a
Cleanup
2020-04-23 14:20:55 +08:00
Him188
1b4e1475a0
Support ForwardMessage DSL
2020-04-23 14:17:24 +08:00
Him188
454205a6af
Add ContactMessage.time
2020-04-23 11:52:44 +08:00
Him188
200a140f38
Fix forward message displaying on TIM PC
2020-04-22 22:15:02 +08:00
Him188
1786c95e07
Support merged forward messages!
2020-04-22 22:09:53 +08:00
Him188
d9135cb8a3
Fix #248
2020-04-22 19:57:38 +08:00
Him188
3545482034
Fix #253
2020-04-22 18:39:10 +08:00
Him188
66f4620292
Add MessageSource.internalId
, support OfflineMessageSource
building
2020-04-22 18:35:30 +08:00
Him188
a63af80668
Deprecate QQ
...
Introduce `Friend` extending `User`
Introduce `User` acting as the superclass of `Friend` and `Member`
Add extensions `Member.asFriend`, etc.
Remove specialized `Contact.hashCode` and `Contact.equals`, inherit from `kotlin.Any`
Specify `toString` behavior in abstract `Contact` classes, instead of in implementation classes.
Add virtual member `Contact.sendMessage(String)`
Migrate the project from using `QQ` to `Friend`
Remove multiplatform Contact class structure, keep them common.
Remove extension `Long.at` in `GroupMessage`, `QQ.at` in `ContactMessage`.
Add `At.asMember()` in `GroupMessage`.
Make `calculateGroupUinByGroupCode`, `calculateGroupCodeByGroupUin` static on JVM.
2020-04-22 16:08:04 +08:00
Him188
41f1c12c8a
Fix build
2020-04-22 11:27:14 +08:00
Him188
c425a809ba
Fix #245
2020-04-21 14:53:24 +08:00
Him188
96610b30e3
Support CustomMessage
2020-04-20 21:26:16 +08:00
Him188
0689f84bf8
Cleanup
2020-04-20 17:03:41 +08:00