sandtechnology
b9f78be0d5
Support C2C sync and fragmented message decoding of friend ( #841 )
...
* Support C2C sync and fragmented message in friend
* Update mirai-core-api/src/commonMain/kotlin/event/events/MessageSyncEvent.kt
* Update mirai-core-api/src/commonMain/kotlin/event/events/MessageSyncEvent.kt
* Update mirai-core-api/src/commonMain/kotlin/event/events/MessageSyncEvent.kt
* Update mirai-core-api/src/commonMain/kotlin/event/events/MessageSyncEvent.kt
Co-authored-by: Him188 <Him188@mamoe.net>
2021-01-11 23:32:32 +08:00
Him188
f053c4cfc0
Improve buildMessageSource and update docs
2021-01-11 22:50:40 +08:00
Him188
98efbfeead
Update docs
2021-01-11 22:36:48 +08:00
Him188
5a867bdaa5
Deprecate MessageSourceAmender.metadataFrom in favour of .metadata
2021-01-11 22:33:26 +08:00
Him188
b41a742ece
Rename toMiraiCode to serializeToMiraiCode;
...
Rename parseFromMiraiCode to deserializeFromMiraiCode
2021-01-11 22:19:27 +08:00
Him188
78bc30ae5d
Update docs
2021-01-11 22:12:00 +08:00
Him188
e8c0ef192c
Update docs
2021-01-11 22:05:04 +08:00
Him188
d1c9acf7f4
Migrate to new GroupTempMessageEvent
2021-01-11 19:26:15 +08:00
Him188
564c961d3f
Add low level APIs for recalling message
2021-01-11 19:11:46 +08:00
Him188
a7dabd63aa
Allow modifying IMirai.Http
2021-01-11 18:57:01 +08:00
Him188
45c5e0fb9c
Change ExternalResource.uploadAsVoice parameter type from Group to Contact for future compatibility.
2021-01-11 18:51:22 +08:00
Him188
93fcb566fd
Introduce AsyncRecallResult for getting result of recallIn
2021-01-11 18:36:04 +08:00
Him188
84ecb1df11
Update docs
2021-01-11 18:08:01 +08:00
Him188
3e68f4f95e
Update docs
2021-01-11 18:06:59 +08:00
Him188
8445048df4
Review deprecation, remove 2.0-M2 migrations
2021-01-11 18:04:42 +08:00
Him188
499a518016
Add Bot.close()
, improve docs
2021-01-11 17:59:54 +08:00
Him188
1d4867d9b6
Merge remote-tracking branch 'origin/dev' into dev
2021-01-11 17:39:28 +08:00
Him188
7f8003478c
Make OtherClientInfo.platform nullable.
2021-01-11 17:14:24 +08:00
Him188
c074bef9c6
Deprecate TempMessageEvent and add GroupTempMessageEvent for #429
2021-01-11 17:09:01 +08:00
sandtechnology
268dcc7039
Support PushStatus and add new ClientKind, Fix #787 ( #836 )
...
* Support PushStatus and improve ClientKind
* Revert NotNull changes
2021-01-10 23:18:14 +08:00
Him188
9a57a3cfc2
[Review] MessageSource:
...
- Remove isAboutXXX
2021-01-10 20:31:00 +08:00
Him188
a2d9dbfcc4
[Review] Messages:
...
- Optimize empty message chain on builders
- Remove `QuoteReply.bot`
- Code style
- Docs
2021-01-10 18:02:07 +08:00
Him188
15a9d5c983
[Review] MessageChainBuilder: do not check built
2021-01-10 04:30:15 +08:00
Him188
938cc6dd07
[Review] MiraiCode and message serialization:
...
- Add extensions for Kotlin callers
2021-01-10 04:16:59 +08:00
Him188
1a1eb0e2a4
[Review] MessageSourceBuilder
2021-01-09 21:36:27 +08:00
Him188
3e4d279bcc
Change TempMessageEvent.sender from Member to NormalMember
2021-01-09 20:55:50 +08:00
Him188
6972a84007
Separate events to reduce file size
2021-01-09 20:47:44 +08:00
Him188
8333dfa52a
Update docs
2021-01-09 20:21:20 +08:00
Him188
989cd3292e
Merge remote-tracking branch 'origin/dev' into dev
2021-01-09 14:54:02 +08:00
Karlatemp
bca98c72d5
Fix StackOverflowError in QuoteReply
...
fix #829
2021-01-09 13:11:07 +08:00
Him188
619dafa1ae
[Review] Move Listener.ConcurrencyKind and Listener.EventPriority to top-level
2021-01-08 12:41:42 +08:00
Him188
4e2108d841
[Review] NudgeEvent: Simplify and stabilize NudgeEvent, remove all XXXNudgeEvent, add single NudgeEvent
2021-01-08 12:28:12 +08:00
Him188
7dd7f48994
Don't catch Error while reconnecting and sending packet, fix #824
2021-01-08 12:03:42 +08:00
Him188
b32090bf2a
[Review] OtherClient:
...
- Change Bot.otherClients to ContactList<OtherClient>
- Change OtherClient.id to delegate info.appId
- Stabilize OtherClientInfo
2021-01-08 11:42:44 +08:00
Him188
1885db5523
Code cleanup
2021-01-08 11:37:09 +08:00
Him188
179746c5f7
Update docs
2021-01-08 11:24:23 +08:00
Him188
8abbfbe4c5
[Review] ContactList: deprecate ContactList<*>.idContentString
2021-01-08 11:24:13 +08:00
Him188
3f3ba48b24
[Review] Member: deprecate Member.isNormal and Member.isAnonymous for simplicity
2021-01-08 11:19:53 +08:00
Him188
976901603e
[Review] MessageRecallEvent: make author and operator not null
2021-01-08 11:11:45 +08:00
Him188
03ab43ad17
Merge remote-tracking branch 'origin/dev' into dev
2021-01-08 10:58:40 +08:00
Him188
ea4c82d3c5
[Review] Event: review type hierarchy, add UserEvent
2021-01-08 10:57:26 +08:00
Him188
6b11ae7320
[Review] MessageEvent: Implement UserMessageEvent and rearrange code
2021-01-08 10:52:03 +08:00
Him188
355fef4c33
[Review] MessageEvent: remove deprecated extensions
2021-01-08 10:43:41 +08:00
Him188
7f9b500e22
[Review] EventChannel: Update docs
2021-01-08 10:37:20 +08:00
Him188
7fea4f4b9e
Remove migration for EventChannel
2021-01-08 10:17:30 +08:00
Him188
2049a9d5af
Update docs
2021-01-08 10:10:45 +08:00
Him188
abcac7ff23
[Review] subscribeMessages: simplify implementations
2021-01-08 10:05:37 +08:00
Him188
f31fbafd02
[Review] MessageSelectBuilder: remove dark magics
2021-01-08 09:51:42 +08:00
Him188
70633a631a
[Review] MessageSubscribersBuilder: stabilization.
2021-01-08 09:50:07 +08:00
Him188
98545e6f6f
[Review] FileCacheStrategy: delete temp file on closure
2021-01-08 09:44:29 +08:00
Him188
2abeb329f6
Add ExternalResource.closed;
...
Move ExternalResource implementations to internal package
2021-01-08 09:44:13 +08:00
Him188
0ac7cb63f1
[Review] FileCacheStrategy
2021-01-08 09:25:51 +08:00
Him188
9c995284f0
[Review] MiraiCode:
...
- Add object MiraiCode for mirai code utilities
- Internal optimizations
2021-01-08 09:20:24 +08:00
Him188
b4f60582fd
Update docs
2021-01-08 09:12:36 +08:00
sandtechnology
eadb217b4a
Add missed data modifier to honor event ( #819 )
...
* Add missed data modifier
* Add toString for MemberHonorChangeEvent
Co-authored-by: Him188 <Him188@mamoe.net>
2021-01-08 09:03:10 +08:00
Him188
cae9775c52
Fix docs
2021-01-08 08:45:47 +08:00
Him188
7bdd8e1580
[Review] Remove unused CombinedMessage.kt
2021-01-08 08:39:47 +08:00
Him188
b17c269b62
[Review] Add FlashImage.from(Image), remove deprecated FriendImage.flash and GroupImage.flash
2021-01-08 08:33:47 +08:00
Him188
cbbb6f27af
Update docs
2021-01-08 08:26:38 +08:00
Him188
348b4ff89e
Fix build
2021-01-07 21:50:45 +08:00
Him188
ca6dbd2740
[Review] Improve Message.isContentEmpty, add Message.isContentBlank
2021-01-07 21:45:09 +08:00
Him188
3cda506c46
[Review] Deprecate:
...
- Message.isContentNotEmpty
- Message.isPlain
- Message.isNotPlain
2021-01-07 21:39:37 +08:00
Him188
f7a6289d34
[Review] Rearrange Message extensions
2021-01-07 21:36:37 +08:00
Him188
c50324b931
[Review] Add DeprecationLevel.ERROR to deprecated 'flatten'
2021-01-07 21:31:33 +08:00
Him188
64e155a08d
[Review] Make MessageChainBuilder final
2021-01-07 21:30:09 +08:00
Him188
668398c597
Fix build
2021-01-07 21:11:30 +08:00
Him188
986ebd3c5c
[Review] Mirai code: rename CodableMessage.appendAsMiraiCode to appendMiraiCodeTo
2021-01-07 21:05:36 +08:00
Him188
d4852ceb6f
[Review] Add missing @MiraiExperimentalApi
to appendMiraiCode
2021-01-07 20:53:29 +08:00
Him188
43b422b540
[Review] MessageChain: rename asMessageChain to toMessageChain, remove flatten
2021-01-07 20:49:37 +08:00
Him188
faece77942
[Review] Rearrange utilities
2021-01-06 16:09:44 +08:00
Him188
41a34bdf65
[Review] Extract MessageSerializersImpl to separate file
2021-01-06 15:55:26 +08:00
Him188
9e631111d4
[Review] Message serialization: ignoreUnknownKeys by default
2021-01-06 15:45:10 +08:00
Him188
3b7be90a84
[Review] Move File.loadAsDeviceInfo to DeviceInfo companion
2021-01-06 15:26:35 +08:00
Him188
a511bfc3b4
[Review] Rename subscriber.kt to Listener.kt
2021-01-06 15:25:50 +08:00
Him188
3d5159f9e5
[Review] Rename linear.kt to syncFromEvent.kt
2021-01-06 15:25:36 +08:00
Him188
3da76125a6
[Review] Stable Stranger.nudge
2021-01-06 15:17:14 +08:00
Him188
1783a69be2
[Review] Remove LockFreeLinkedList
2021-01-06 15:16:47 +08:00
Him188
24fdf056c2
[Review] Move LazyProperty to Annotations.kt
2021-01-06 15:14:00 +08:00
Him188
382d3d08d4
[Review] Move WeakRef to mirai-core-utils
2021-01-06 15:13:15 +08:00
Him188
3c0bc21816
[Review] Remove Channels.kt
2021-01-06 15:09:21 +08:00
Him188
1059ab44bc
[Review] Rename lowLevelApi.kt to LowLevelApiAccessor.kt
2021-01-06 15:04:24 +08:00
Him188
5b74f2a64e
[Review] Move JavaFriendlyApi to Annotations.kt
2021-01-06 15:02:49 +08:00
Him188
58c2a2edb8
Add Message.plus(Array<out Message>
2021-01-06 15:00:05 +08:00
Him188
1215a56775
[Review] LowLevelApiAccessor:
...
- Rename method names, remove "_lowLevel"
- Add blocking bridges
2021-01-06 14:58:06 +08:00
Him188
bca15cd09f
Fix RichMessage.key generics
2021-01-06 14:38:09 +08:00
Him188
cab8e2f674
Implement ConstrainSingle for ForwardMessage
2021-01-06 14:37:52 +08:00
Him188
ebc7d655e3
Message serialization, fix #767
2021-01-06 13:14:57 +08:00
Him188
bfd21cbb92
Make properties in MessageKey with @JvmField
to allow @JvmField in inherited classes
2021-01-06 08:13:22 +08:00
Him188
1d24a810fe
Unify image id
2021-01-05 23:28:34 +08:00
Him188
54add6df78
Add BotConfiguration.workingDir
2021-01-05 21:04:04 +08:00
Him188
767eb75d4e
Move Http client from MiraiPlatformUtils to IMirai.Http
...
Delete MiraiPlatformUtils
Add timeout configuration for ktor HttpClient, fix #673
2021-01-05 20:43:04 +08:00
Him188
d99fc810f9
Improve docs
2021-01-05 20:35:23 +08:00
Him188
d5cdd9e161
Improve file type detecting
2021-01-05 20:35:10 +08:00
Him188
f6faf19ad8
Improve docs
2021-01-05 20:29:24 +08:00
Him188
95e6ca4c7a
Add BotOfflineEvent.reconnect
, support auto-reconnect control.
...
AbstractBot.offlineListener is now MONITOR
2021-01-05 20:23:00 +08:00
sandtechnology
7d43ab20f8
Syncing when joined group by other client & Add missed invitor in invite event ( #804 )
...
* Introduce UserInfo and change uin to id
* Stranger api: List and asStranger
* Stranger api: Events
* Stranger api: MessageDSL and MessageSource
* Update docs
* Improve LoginSolver
fix project-mirai/mirai-login-solver-selenium#4
* Improve SeleniumLoginSolver loading
* Fix MessageChain.fragmented
* 2.0-M2-1
* Stranger api change: StrangerRelationChangeEvent
* Stranger impl: list and asStranger
* Stranger impl: get stranger list and del stranger protocol
* Stranger impl: add stranger protocol
* Stranger impl: MessageSource refactor and sending&receiving message
* Stranger impl: Dropping long message support (server rejected)
* Stranger impl: sending stranger message when member is stranger
* Fix wrong key
Co-authored-by: Him188 <Him188@mamoe.net>
* Add @LowLevelApi
Co-authored-by: Him188 <Him188@mamoe.net>
* Remove redundant val modifier
* Replace nudge if statement to when statement
* Move list seq to QQAndroidClient
* Replace id with uin in UserInfo and fix build error
* Using by lazy in asStranger
* Fix wrong wordings
* Fix wrong wordings in uploading image
* Fix nudge
* Fix #478 , sync other client join group
* Change to NormalMember and update toString method
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
* Launch on bot network scope
Co-authored-by: Him188 <Him188@mamoe.net>
* Fix TarsDecoder
fix #762
* Fix TarsInput.skipField
Co-authored-by: Him188 <Him188@mamoe.net>
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-01-05 17:27:40 +08:00
sandtechnology
1117c14c7d
Support Stranger & Fix #664 ( #795 )
...
* Introduce UserInfo and change uin to id
* Stranger api: List and asStranger
* Stranger api: Events
* Stranger api: MessageDSL and MessageSource
* Update docs
* Improve LoginSolver
fix project-mirai/mirai-login-solver-selenium#4
* Improve SeleniumLoginSolver loading
* Fix MessageChain.fragmented
* 2.0-M2-1
* Stranger api change: StrangerRelationChangeEvent
* Stranger impl: list and asStranger
* Stranger impl: get stranger list and del stranger protocol
* Stranger impl: add stranger protocol
* Stranger impl: MessageSource refactor and sending&receiving message
* Stranger impl: Dropping long message support (server rejected)
* Stranger impl: sending stranger message when member is stranger
* Fix wrong key
Co-authored-by: Him188 <Him188@mamoe.net>
* Add @LowLevelApi
Co-authored-by: Him188 <Him188@mamoe.net>
* Remove redundant val modifier
* Replace nudge if statement to when statement
* Move list seq to QQAndroidClient
* Replace id with uin in UserInfo and fix build error
* Using by lazy in asStranger
* Fix wrong wordings
* Fix wrong wordings in uploading image
* Fix nudge
Co-authored-by: Him188 <Him188@mamoe.net>
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-01-01 21:39:45 +08:00
Him188
b482590ce1
Remove redundant checks
2021-01-01 16:15:55 +08:00
Him188
9c6780d5c4
Use DEFAULT_FORMAT_NAME
2021-01-01 16:15:35 +08:00
Him188
fc2df4b9ad
Add implementation notes
2021-01-01 16:15:00 +08:00