Commit Graph

3667 Commits

Author SHA1 Message Date
Him188
6db2c23a17 Improve exception message 2020-05-09 17:16:24 +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
28f48e5c78 Make random device info more random 2020-05-09 16:20:57 +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
d607568970
Merge pull request #313 from mamoe/binary-compatibility
Add binary-validator
2020-05-09 15:37:33 +08:00
Him188
e75888a6e9 Add binary-validator 2020-05-09 15:37:02 +08:00
Him188
238e94dae7 Cleanup 2020-05-09 15:09:01 +08:00
Him188
f765804ff7 Make MessageMetadata.contentToString final 2020-05-09 15:07:29 +08:00
Him188
b0089d58d6 Deprecate ambiguous extensions on QuoteReply, like QuoteReply.id 2020-05-09 15:03:49 +08:00
Him188
b64b1da666 Make MessageChain implement List<SingleMessage>;
Hide relevant APIs on `Iterable`;
Deprecate `__forEachForJava__` in favor of Java 8 API;
Add `fun messageChainOf(vararg messages: Message): MessageChain`;
Add `fun Array<out Message>.asMessageChain(): MessageChain`;
Add `fun Array<out SingleMessage>.asMessageChain(): MessageChain`;
Add `fun Array<out Message>.flatten(): Sequence<SingleMessage>`;
Add `fun Array<out SingleMessage>.flatten(): Sequence<SingleMessage>`;
Close #312
2020-05-09 14:54:48 +08:00
Him188
9733490266 Add docs 2020-05-09 13:45:29 +08:00
Him188
f87093c10c
Merge pull request #311 from Karlatemp/patch-5
Update duration display
2020-05-09 12:19:34 +08:00
Karlatemp
0716438242
Update duration display 2020-05-09 11:06:00 +08:00
Him188
781af6d837
Update bug---.md 2020-05-08 12:03:23 +08:00
Him188
8859f96b4f
Update bug---.md 2020-05-08 12:02:32 +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
ed11f38b3f Use MONITOR priority for subscribeMessages by default 2020-05-07 10:47:23 +08:00
Him188
a1322076fc Improve network availability check 2020-05-07 10:45:19 +08:00
无限UCW
8a6f306cdb
fix typo (#308)
* fix typo

* fix typo
2020-05-07 10:44:20 +08:00
Him188
ad41b7a0d0
Fix ambiguous doc on MessageSource.internalId 2020-05-06 22:34:15 +08:00
mzdluo123
cb842d87b4 Merge remote-tracking branch 'origin/master' 2020-05-06 14:10:22 +08:00
mzdluo123
ff4739f57e fix: BufferedImage not found on Android 2020-05-06 14:09:53 +08:00
Him188
e69037e10f Fix cuiCloud 2020-05-06 14:00:32 +08:00
Him188
5cd027dfa9 Remove param format from FileCacheStrategy.newImageCache 2020-05-06 13:17:08 +08:00
Him188
d80ab1608a 1.0-RC released 2020-05-06 13:02:12 +08:00
Him188
6e75f8dd34 Implement event priority for nextMessage 2020-05-06 12:55:31 +08:00
Him188
47df80d3ea Implement event priority for syncFromEvent and nextEvent 2020-05-06 12:53:24 +08:00
Him188
15e6bb4b8b Implement event priority for subscribeMessages 2020-05-06 12:50:41 +08:00
Him188
cdb188cd42 Add docs 2020-05-06 12:46:25 +08:00
Him188
07004311f4 Merge remote-tracking branch 'origin/master' 2020-05-06 12:43:55 +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
3255e330c0 Implement event priority for selectMessages 2020-05-06 12:05:08 +08:00
Him188
42ceb38020 Use CONCURRENT concurrency as default for subcribeAlways 2020-05-06 12:03:50 +08:00
Him188
aadea751ac Add precondition checks 2020-05-06 11:52:44 +08:00
Him188
05429e5800 Add docs 2020-05-06 11:33:58 +08:00
Him188
e54ead6331 Fix binary compatibility 2020-05-05 17:01:40 +08:00
Him188
17bbcdb3dc Fix binary compatibility 2020-05-05 16:45:41 +08:00
Him188
e35820d035 Fix binary compatibility 2020-05-05 16:44:01 +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
96a5825283 Add nextEvent, add docs 2020-05-05 14:23:08 +08:00
Him188
37ce266091 Cleanup, remove verbose functions 2020-05-05 14:10:17 +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