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
Him188
405696d9ac
Use sequenceId as MessageSource.id
, await sequenceId on Group.sendMessage
2020-04-18 16:56:18 +08:00
Him188
c695f2cddf
Fix #240
2020-04-18 14:53:32 +08:00
Him188
7f347feedd
Deprecate openChannel
2020-04-17 21:36:39 +08:00
Him188
fa211cab5c
Fix retry when no Internet connection
2020-04-17 21:36:29 +08:00
Him188
db8cb84c99
Rearrange implementations for MessageSource, implement recall state check
2020-04-17 14:19:32 +08:00
Him188
47a288c614
Fix #220
2020-04-17 10:40:39 +08:00
Him188
6d57f44e91
Optimize useless getters, fix #236
2020-04-17 09:29:29 +08:00
Him188
870ed59d97
Inherit kotlinx-coroutines dependency from ktor
2020-04-16 10:39:27 +08:00
Him188
2b2edeacb1
Support operator in GroupNameChangeEvent
, optimize logs, close #217
2020-04-15 19:55:10 +08:00
Him188
991f46fe64
Introduce ServiceMessage
, fix #229 , fix #224
2020-04-15 19:14:59 +08:00
Him188
e1004f12c9
Fix #220
2020-04-15 18:29:17 +08:00
Him188
c6059ab9ec
Add tests
2020-04-15 18:18:59 +08:00
Him188
f79d3f9aa0
Fix AtomicResizeCacheList
2020-04-15 17:55:54 +08:00
Him188
e1c1c35d70
Introduce AtomicResizeCacheList to reduce duplication, fix #225
2020-04-15 17:51:32 +08:00
Him188
b30c380637
Fix #226
2020-04-15 17:01:04 +08:00
Him188
90ee9b441a
Rework reconnection, fixes #228
2020-04-15 16:46:39 +08:00
Him188
f1ac53f115
Cleanup
2020-04-15 10:47:11 +08:00
Him188
e31805a835
Add comments, preparing for #220 , #229
2020-04-15 08:48:23 +08:00
Him188
6eb4423bfc
Remove debugging loggers
2020-04-15 08:19:49 +08:00
Him188
26c81cb93b
Fix longMessage
2020-04-13 20:44:17 +08:00
Him188
bb6cac3261
Cleanup
2020-04-13 20:18:57 +08:00
Him188
51a95da5db
Fix build
2020-04-13 18:56:25 +08:00
Him188
f5a8420231
Speed up image uploading
2020-04-13 11:13:27 +08:00
Him188
fe764d1fa8
Increase buffer size for uploading image
2020-04-13 10:50:58 +08:00
Him188
2b95bea8da
Unified logMessageReceived
2020-04-13 10:27:22 +08:00
Him188
67084129cd
Ignore ClearCountMsg
2020-04-13 10:18:31 +08:00
Him188
c433360d87
Add exception logger
2020-04-12 20:19:36 +08:00
Him188
a0c1675abc
Add default values
2020-04-12 19:54:16 +08:00
Him188
da801d7b6d
Support server changing, close #52
2020-04-12 19:17:27 +08:00
Him188
e6ef03f60d
Fix ConfigPush
2020-04-12 17:24:17 +08:00
Him188
e23f91bac1
Estimate length of originalMessage
2020-04-12 01:42:37 +08:00
Him188
d97aa7bd94
Unified MessageSource.toJceData
2020-04-12 01:41:27 +08:00
Him188
0f91587ae7
Fix nameCard deserializing
2020-04-11 22:29:54 +08:00
Him188
fdef3bdbdd
Merge remote-tracking branch 'origin/master'
2020-04-11 21:25:52 +08:00
ryoii
cd0b27e63d
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/PbMessageSvc.kt
2020-04-11 21:24:35 +08:00
ryoii
28108a36ae
Fix temp message and friend message recall
2020-04-11 21:22:18 +08:00
Him188
b9a3675dad
Support Group.quit
, add BotLeaveEvent.Active
2020-04-11 20:15:23 +08:00
Him188
0f86ad0240
Cleanup
2020-04-11 19:11:55 +08:00
Him188
6b93129048
Add contextual exceptions
2020-04-11 19:03:15 +08:00
Him188
0dfea0698c
Add sequence cache to filter duplicated events, fix #221
2020-04-11 18:47:40 +08:00
Him188
16d6c56202
Add soutv
for debugging purposes
2020-04-11 18:24:52 +08:00
Him188
f3cf0004af
Fix values
2020-04-11 16:07:37 +08:00
Him188
505943cb3d
Handle SMS login
2020-04-11 16:06:21 +08:00
Him188
30303c0473
Fix unsigned values
2020-04-11 16:06:19 +08:00
Him188
3f1221699d
Fix build
2020-04-10 23:43:59 +08:00
ryoii
847a073ac0
Merge remote-tracking branch 'origin/master'
2020-04-10 23:39:59 +08:00
ryoii
39f0ae7b24
Clear useless print
2020-04-10 23:39:42 +08:00
Him188
67856777f6
Merge remote-tracking branch 'origin/master'
2020-04-10 23:38:54 +08:00
Him188
125f53a72e
Fix botPermission
2020-04-10 23:38:37 +08:00
Him188
4d52078c88
Remove unused class
2020-04-10 22:39:44 +08:00
Him188
458fe2ee94
Fix duplicated OnlinePush
2020-04-10 22:24:46 +08:00
Him188
b0bc0ec62b
Rearrange files
2020-04-10 20:45:20 +08:00
Him188
7bb9052afd
Add missing copyright
2020-04-10 20:40:50 +08:00
Him188
f11690472a
Fix new member joining, close #172
2020-04-10 20:31:20 +08:00
Him188
d8a5291880
Fix new member
2020-04-10 20:29:17 +08:00
Him188
3c786cb042
Support MemberJoinEvent.Active
, also fix #164
2020-04-10 20:21:51 +08:00
Him188
418fb43992
Returns botAsMember when Group.get(bot.id)
2020-04-10 19:40:34 +08:00
Him188
2c31a2ac2f
Fix jce type
2020-04-10 19:35:00 +08:00
Him188
42e465af35
Fix jce type
2020-04-10 19:34:47 +08:00
Him188
4728ae26b7
Cleanup
2020-04-10 19:16:12 +08:00
Him188
1e1785f4d6
Add ForwardMessage
, support decoding, fix LongMessage
decoding
2020-04-10 19:16:06 +08:00
Him188
c65350e9cf
Change friend list on FriendDeleteEvent
2020-04-10 19:02:38 +08:00
Him188
918ede1fa6
Add FriendDeleteEvent
, FriendAddEvent
, also fix #216
2020-04-10 18:56:26 +08:00
Him188
1ff84a4c91
Fix #212
2020-04-10 15:06:06 +08:00
Him188
94557a2a33
Reduce nesting depth, also fix #173
2020-04-10 14:50:33 +08:00
ryoii
98542546bc
Merge remote-tracking branch 'origin/master'
2020-04-09 16:20:09 +08:00
ryoii
56c63723e8
Fix rich group name card, and support name card changed event. close #210
2020-04-09 16:17:14 +08:00
Him188
ec35eeba1c
Simplify Bot structure
2020-04-09 16:14:48 +08:00
Him188
f28e50e0af
Add fail-fast check
2020-04-09 16:00:53 +08:00
Him188
ee89f22c87
Fix kick
2020-04-09 15:56:45 +08:00
Him188
8f4313a337
Increase timeout, close #28
2020-04-09 12:27:34 +08:00
Him188
3a8b2dd6d2
Fix MessageSource.id from offline quotations
2020-04-09 09:38:30 +08:00
Him188
a604083e9a
Fix naming issue
2020-04-09 08:55:17 +08:00
ryoii
2053ab198c
Support TempMessage
2020-04-08 22:12:18 +08:00
Him188
5493bf39da
Fix build
2020-04-08 14:43:30 +08:00
Him188
df9a5f7c0a
Fix incorrect new contact handling
2020-04-08 14:37:33 +08:00
Him188
b4140b7871
Extract reloadFriendList()
outside init()
2020-04-08 14:33:51 +08:00
Him188
6480e78b24
Handle ContactList syncing on new friend or member event.
2020-04-08 14:33:13 +08:00
Him188
afb093ba44
Fix massive concurrent loading
2020-04-08 13:50:48 +08:00
Him188
6a7ece1cb8
Fix LongMessage decodeing
2020-04-08 13:29:26 +08:00
Him188
faf8002de9
Fix massive group list loading
2020-04-08 13:25:20 +08:00
Him188
a69d6e2ecd
cleanup
2020-04-08 10:43:13 +08:00
Him188
acd11b6eda
Make protocol structure classes internal
2020-04-08 10:42:59 +08:00
Him188
62e6d3f473
Make OIDB structure classes internal
2020-04-08 10:38:56 +08:00
ryoii
b08b5bccf9
Internal struct class
2020-04-08 00:46:14 +08:00
ryoii
0463140b8b
Fix bot as a member can't change group card itself
2020-04-07 23:58:18 +08:00
ryoii
eec820c1a7
Support for approving requests of adding friend and joining group, close #91
2020-04-07 21:14:34 +08:00
Him188
5c95ab299e
Adjust timeout, add retry for several servers
2020-04-07 14:36:51 +08:00
Him188
7049cc4591
Simplify expression
2020-04-07 13:50:55 +08:00
Him188
fb19c0af36
Support MessageSource
in MessageSource.originalMessage
2020-04-07 10:06:11 +08:00
Him188
6c25516143
Fix permission detection on recalling self-sent message
2020-04-07 09:23:05 +08:00
Him188
dc4b0cbe1e
Implement Packet.NoLog
2020-04-07 09:01:17 +08:00
Him188
1b8626df13
Implement Packet.NoLog
2020-04-07 09:00:58 +08:00
Him188
b72589de24
Remove useless fast re-login
2020-04-06 20:57:51 +08:00
Him188
09dca31a6b
Force message to be in single line
2020-04-06 20:54:37 +08:00
Him188
f6cc90a893
Unified message logs
2020-04-06 20:37:42 +08:00
Him188
560c46ede4
Unified message logs
2020-04-06 20:33:26 +08:00
Him188
165de9a85d
Fix references
2020-04-06 19:14:12 +08:00
Him188
b8b749bf65
Completed CombinedMessage redesigning and constraining on concatenation
2020-04-06 18:04:41 +08:00
ryoii
fcf2f5c84c
Fix message length estimate again, #195
2020-04-05 23:51:35 +08:00
Him188
7e6badb8db
Use retryCatching
in place of tryNTimes
2020-04-05 23:36:19 +08:00
Him188
c95efe98a3
Fix addSuppressedMirai
on JVM
2020-04-05 23:09:12 +08:00
Him188
c6c404f167
Add missing files
2020-04-04 23:41:31 +08:00
Him188
864cde060e
Fix #180
2020-04-04 23:22:52 +08:00
Him188
19bc7b80c5
Rename MessageSource.senderId
to MessageSource.fromId
2020-04-04 22:38:08 +08:00
Him188
039b3d7517
Cleanup
2020-04-04 22:17:35 +08:00
Him188
2b49a7586f
Reconstruct MessageSource, fix #197 , #133
2020-04-04 22:08:53 +08:00
Him188
c3be191db0
Rearrange FlashImage
, add more docs
2020-04-04 14:33:55 +08:00
Him188
3cc5cbfcfd
Introduce BotIsBeingMutedException
to replace IllegalStateException
2020-04-04 14:17:32 +08:00
Him188
e8b0c99006
Fix name
2020-04-04 13:54:11 +08:00