Him188
e6f7edadeb
Fix doc on MessageSource
2021-05-30 23:44:52 +08:00
Him188
2d10cc10be
Add implementation notes for Listener
2021-05-30 09:42:24 +08:00
Him188
bcdff1336b
Kotlin 1.5 and dependencies updates ( #1246 )
...
* Kotlin 1.5 and dependencies updates
* Update mirai-console ref
* Use Kotlin 1.5.10
* 2.7-M1-dev-3
* Update console ref
2021-05-27 14:39:13 +08:00
Him188
5e25c0e25b
Remove bintray
2021-05-25 12:25:53 +08:00
Him188
d43a77b590
Update docs and improve source code readability
2021-05-09 15:31:50 +08:00
Him188
2e1ec03daa
Deprecate ForceOfflineException
2021-05-09 13:12:34 +08:00
Him188
d755ebf7ee
Use topLevelEventLogger instead of MiraiLogger.TopLevel for non-BotEvent events
2021-05-09 00:54:48 +08:00
Him188
35884182af
Fix and improve event logging
2021-05-09 00:54:48 +08:00
Him188
d73f5a2692
Review BotConfiguration and implement relevant configs, implement alive heartbeat, fix behavior on resume
2021-05-09 00:54:48 +08:00
Him188
eb80a4836b
Remove all unstable kotlin.Duration usages
2021-05-09 00:54:48 +08:00
Him188
a7a4879d05
Improve logging
2021-05-09 00:54:48 +08:00
Him188
5fa54114c1
Fix sso and event logging
2021-05-09 00:54:48 +08:00
Him188
8db8e2fb03
Implement lifecycle management for network
2021-05-09 00:54:48 +08:00
Him188
076cd4997d
BotOfflineEventMonitor
2021-05-09 00:54:48 +08:00
Him188
b91bbfd2b8
Add NetworkHandlerFactory and tests for NetworkHandler
2021-05-09 00:54:48 +08:00
Him188
57eb716e31
Add inline BotFactory.newBot
for Kotlin DSL. fix #1233 ( #1234 )
2021-05-02 13:51:32 +08:00
Him188
0dbb448cad
Fix doc on BotConfiguration.inheritCoroutineContext
2021-05-01 10:54:21 +08:00
Him188
a8a448272d
Add BotConfiguration.heartbeatStrategy
...
(cherry-picked from #1229 )
2021-04-30 22:56:00 +08:00
Him188
104f7b4292
Fix statHeartbeatPeriodMillis
not copied in BotConfiguration.copy
2021-04-30 22:06:15 +08:00
wdvxdr1123
758eca55cd
feat: support kugou,kuwo music share ( #1228 )
...
* feat: support kugou,kuwo music share
* fix: api check
* fix: api check again
* Update MusicShare.kt
Co-authored-by: Him188 <Him188@mamoe.net>
2021-04-30 22:03:36 +08:00
Him188
c7dfef9ad5
Improve logs on event exception
2021-04-29 12:31:09 +08:00
Him188
70dc0a4da6
Remove kotlin.time.Duration usages ( #1215 )
...
* Remove kotlin.Duration usages
* Fix build
* update submodule console ref
2021-04-27 11:49:30 +08:00
Him188
c3b6342d34
Fix EventChannelKotlinExtensions resolution ambiguity
2021-04-25 11:35:56 +08:00
AdoptOSS
09475efbda
fix: serialization plugin should not be put into runtime classpath ( #1197 )
2021-04-17 19:56:19 +08:00
Hoshino Tented
1bf1e3686f
添加管理员修改功能 ( #1178 )
...
* add modifyAdmin
* 修复赋予相同权限时不会抛错并且仍然广播事件的 bug
* fix test failed
* fix test failed AGAIN
* fix myself
* 是这样吗
* i am so sorry :(
* fix fixed bug
2021-04-16 08:33:07 +08:00
Him188
f3d3130f2d
Support login cache and login without password. close #1158
2021-04-10 18:46:39 +08:00
Him188
455ed6fbeb
Move NormalMember.isMuted
from extension to member function. fix #1037
2021-04-10 12:58:10 +08:00
Him188
8d3a4fbf5b
Deprecate RemoteFile.moveTo(String)
for ambiguous behavior ( #1180 )
2021-04-09 18:33:12 +08:00
Him188
e20313636a
Make Group.setEssenceMessage static
2021-04-08 18:17:00 +08:00
Him188
770615f137
Ensure Mirai impl initialized on serialization, fix #1086
2021-04-07 23:28:41 +08:00
Him188
944099a977
Add _MiraiInstance to allow internal instance overrides
2021-04-07 21:49:44 +08:00
Him188
620771211e
Merge remote-tracking branch 'mirai/dev' into dev
2021-04-05 23:58:54 +08:00
Him188
f0093a0cca
Fix ignored exceptions in PlatformLogger on Android
2021-04-05 23:58:37 +08:00
Him188
45aca5f37d
Add ForwardMessageBuilder.toRawForwardMessage
and make RawForwardMessage
stable ( #1162 )
...
* Add `ForwardMessageBuilder.toRawForwardMessage` and make RawForwardMessage stable.
* apiDump
2021-04-05 22:35:52 +08:00
AdoptOSS
21e8852e0f
buildscript: fix task not found errors when android sdk not available ( #1161 )
...
* buildscript: fix task not found errors when android sdk not available
* fix: this shadowed by run
* cleanup: code style
* improve: avoid breaking index map
2021-04-05 22:35:38 +08:00
Him188
7521e6d17f
Rename RichMessageOrigin
to MessageOrigin
( #1116 )
...
* Rename `RichMessageOrigin` to `MessageOrigin`
* apiDump
* Change `MessageOrigin.origin` parameter type from `RichMessage` to `SingleMessage`;
Rename `RichMessageKind` to `MessageOriginKind`
* Make MessageOriginKind serializable and update docs
* Ensure binary compatibility with <2.6 and provide migration helpers
* apiDump
2021-04-04 00:31:33 +08:00
Him188
cccdb3cdf2
Update docs for messages ( #1142 )
...
* Update docs for messages
* Update docs for messages
* Update docs for messages
* Update docs for messages
* Update docs/Messages.md
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
* Update mirai-core-api/src/commonMain/kotlin/message/data/Message.kt
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
* Update docs for messages
* Update docs for messages
* Revert inappropriate changes
* Fix doc
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-04-03 22:39:55 +08:00
Him188
ea1f43b9c5
Fast login ( #1154 )
...
* wtlogin10
* Fast login Packet Implement (#1125 )
* Correct group syncing logic again, Fix #1120
* Implement fast login packet, thanks to MiraiGo
* Delete duplicated tlv
* Refresh Token when exchanging and solve connection dropping issue (#1128 )
* Correct group syncing logic again, Fix #1120
* Implement fast login packet, thanks to MiraiGo
* Delete duplicated tlv
* Schedule token exchanging every 10 minutes, solve connection dropping issue
* Refresh Token when exchanging, and correct token expire time
* Remove useless params for doFastLogin
* Fix missed register and tgt update (#1131 )
* Correct group syncing logic again, Fix #1120
* Implement fast login packet, thanks to MiraiGo
* Delete duplicated tlv
* Schedule token exchanging every 10 minutes, solve connection dropping issue
* Refresh Token when exchanging, and correct token expire time
* Remove useless params for doFastLogin
* Fix missed register and tgt update
* Add login lock
* Add login lock
* Remove key refresh
* Remove heartbeat period override
* Login: Update tlv and solve constant connection dropping issue (#1150 )
* Correct group syncing logic again, Fix #1120
* Implement fast login packet, thanks to MiraiGo
* Delete duplicated tlv
* Schedule token exchanging every 10 minutes, solve connection dropping issue
* Refresh Token when exchanging, and correct token expire time
* Remove useless params for doFastLogin
* Fix missed register and tgt update
* Update tlv, add tlv11d and tlv11a decoding
* Add stat heartbeat, solve constant connection dropping issue
* Update apidump for new configuration
* Add comment for statHeartbeatPeriodMillis
* Change old naming
* Add since version
Co-authored-by: Him188 <Him188@mamoe.net>
Co-authored-by: sandtechnology <20417547+sandtechnology@users.noreply.github.com>
2021-04-03 22:31:14 +08:00
Him188
1c486854a8
Fix FileMessage.Key
2021-03-30 21:42:05 +08:00
Him188
430c2c59ad
Support UnsupportedMessage ( #1112 )
...
* Support UnsupportedMessage
* Fix serialize
* `UnsupportedMessage.contentToString`: use `struct.contentHashCode()`
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-03-26 23:54:17 +08:00
Him188
0f41c225f9
Move SerialDescriptor.copy to mirai-core-utils
2021-03-26 20:42:51 +08:00
Him188
fef0b4220a
Merge remote-tracking branch 'mirai/dev' into dev
2021-03-26 10:07:13 +08:00
Him188
7ed8502e68
Fix docs on IMirai.FileCacheStrategy
2021-03-26 10:06:48 +08:00
Him188
c071ac5773
Update docs of Nudge, clearification
2021-03-23 23:57:20 +08:00
Him188
f8da762d2f
Merge remote-tracking branch 'mirai/dev' into dev
2021-03-22 12:52:39 +08:00
Him188
c006a48de5
Update docs about FileCacheStrategy, close #1046
2021-03-22 12:52:18 +08:00
Him188
ee1ea33898
Remove inappropriate use of DSL marker on ForwardMessageBuilder.add
2021-03-22 11:24:26 +08:00
Him188
0c3c85f61c
Add members to make ForwardMessageBuilder easier to use from Java, close #1087
2021-03-22 11:24:26 +08:00
Him188
f42747f6ac
Make buildMessageChain not @JvmSynthetic
2021-03-22 11:21:22 +08:00
Him188
daa7453d73
Add UserOrBot.nameCardOrNick
2021-03-22 11:16:34 +08:00