Commit Graph

8293 Commits

Author SHA1 Message Date
Karlatemp
4d9f6e88f9 [core] Fix polymorphic serialization 2023-02-20 22:09:39 +08:00
Him188
1acf51e308 Update copyright in README and code template to 2023 2023-02-20 11:04:07 +00:00
cssxsh
bec756e0bf [core] fix: announcements cookie (#2512) 2023-02-19 11:50:02 +00:00
sandtechnology
f4667fe1ef [core] Handle TimeoutCancellationException when resuming connection. Fix #2504, fix #2488 (#2505)
* #2504,#2488 handle TimeoutCancellationException when resuming connection

* Remove unnecessary code and fix wording

* Use yield() instead of delay

* Use yield() instead of delay
2023-02-19 11:49:41 +00:00
cssxsh
38e03fdc00 [console] Add StartupEvent and AutoLoginEvent (#2446)
* add: console event impl

* add: internal annotation

* add: since 2.15
2023-02-19 11:48:28 +00:00
Him188
26a3ddd505 [core] Improve docs on queryProfile, close #2460 2023-02-19 11:46:35 +00:00
Him188
5cad8aad8d [docs] Fix reference to images in docs/UsingSnapshots.md 2023-02-19 11:43:35 +00:00
Him188
f6dc4c6b55 [build] 使用自增序号作为预览版本号 (#2516)
* [build] Use numerical build index numbers for snapshot versions

* use warning

* Use same index for all machines

* fix get

* different indexes for branches

* add docs
2023-02-18 23:22:03 +00:00
Eritque arcus
cc22174e64 [mock] add size into MockImage (#2515) 2023-02-18 20:32:21 +00:00
cssxsh
9f36eff070 [core] Support loading service from classloaders other than current (#2428)
* fix: load service, close #2268 #2427

* fix: check empty
2023-02-17 09:57:12 +00:00
Karlatemp
e686a23f40 [core] Fix offline message source quote replying; fix #2501 2023-02-16 23:06:23 +08:00
7aGiven
d8ef9ad282 修改执行指令部分 (#2506)
将PluginManager修改为CommandManager
2023-02-16 02:52:06 +00:00
Him188
aec5e21dda [core] Fix docs for RoamingMessages 2023-02-11 13:08:47 +00:00
EnchStudio
c96275892c [console] typo: 将 consosle 改为 console (#2491) 2023-02-10 16:20:29 +00:00
NKXingXh
4d41e53bf3 [docs] Rename miraiez to MiraiEz (#2479) 2023-02-09 11:59:24 +00:00
Karlatemp
1d515b92c3 Prepare for 2.15.0 dev 2023-02-06 12:24:13 +08:00
Karlatemp
7180d53e46 [docs] Changelog for 2.14.0 v2.14.0 2023-02-06 12:21:07 +08:00
Him188
d7a7a5044b [build] Delete unused Groovy code 2023-01-29 08:33:54 +00:00
Him188
940e76aa95 [core] Fix AbstractProcessorPipeline.registerBefore, do addFirst instead of add 2023-01-29 08:33:54 +00:00
RTAkland
e5668fa5a9 update highlighted text (#2464)
获取应该再 `Kotlin`那里高亮而不是 `是让开发人员更快乐的一门现代编程语言`
2023-01-28 10:22:53 +00:00
char46
fa734ce2ff [docs] 将 TempCommandSender 替换为 GroupTempCommandSender (#2457)
根据后文代码注释'mirai 正计划支持其他渠道发起的临时会话, 届时此事件会变动. 原 TempCommandSender 已更改为 GroupTempCommandSender'修改。
2023-01-25 15:18:23 +00:00
Him188
8f32e40d77 [docs] Add changelog for 2.13.4 2023-01-21 11:16:05 +00:00
Him188
edddfe262e [docs] Refine changelog for 2.14.0-RC 2023-01-21 11:16:05 +00:00
XieXuan
453ad6bb11 [docs] Add MiraiTravel SDK (#2435)
* Update README.md

* 添加了链接

添加了项目仓库链接
2023-01-20 09:00:16 +00:00
Karlatemp
68e1cc45b3 Fix console not stopped when plugin failed to load 2023-01-19 00:03:27 +08:00
Karlatemp
c468570ee1 [docs] Add changelog for 2.14.0-RC 2023-01-18 18:26:34 +08:00
Eritque arcus
0a7ebb7b4a add implement of md5 and sha1 for MockAbsoluteFile (#2436)
* add impl of md5 and sha1

* add tests

* modify as required
2023-01-18 17:42:56 +08:00
sandtechnology
cc7f35519e Update login protocol (#2433)
* Update login protocol
Still need testing

* Turn off debug option and make t547 null when failed

* Fix wrong convert method and improve tips

* Remove unused part and improve tips

* Fix typo

* Inline resultStatus for performance

* Rename pow to PoW, the name should be "Proof of Work"

* Add shadow and deps-test for kt-bignum

* Try to fix deps-test

* Fix deps-test again
2023-01-18 17:41:21 +08:00
Eritque arcus
56dea84336 [mock] Fix message recalling (#2421)
* Fix message recalling

Co-authored-by: Karlatemp <kar@kasukusakura.com>

* Message recalling tests

Co-authored-by: Karlatemp <kar@kasukusakura.com>
2023-01-18 17:39:40 +08:00
Eritque arcus
aa84e6d337 fix MockNormalMember modify admin (#2420)
* fix MockNormalMember modify admin (untested)

* modify as required

* fix changeOwner (tested)

* update test

* update tests
2023-01-17 13:12:31 +00:00
Him188
56bfc65d82 [docs] Add missing author in changelog for 2.13.3 2023-01-14 13:53:19 +00:00
Him188
0f56dcf94b [docs] Add missing information in changelog for 2.13.3 2023-01-14 13:51:38 +00:00
Him188
f5e4465da7 [docs] Add changelog for 2.13.3 2023-01-13 23:43:43 +00:00
sandtechnology
53f1971d94 [core] Generate and handle tgtgtKey correctly, fix #2418 (#2419)
* Generate and handle tgtgtKey correctly, fix #2418

* Optimize the code readability of WtLogin9

* Add utility method to write t106 with A1
2023-01-13 23:36:10 +00:00
sandtechnology
e7bcb190a7 Update ANDROID_PHONE and ANDROID_PAD protocol (#2423)
Updated From MiraiGo:a30750849d
2023-01-13 12:28:28 +00:00
Him188
974be88410 [core] Remove SwingSolver and SeleniumLoginSolver. Always use StandardCharImageLoginSolver on desktop JVM. Close #2410 2023-01-11 21:31:46 +00:00
Him188
3cd74ff45b [docs] Remove unnecessary declarations in README 2023-01-10 11:58:20 +00:00
Him188
f04c623658 [core] Implement a more efficient algorithm to fetch roaming messages for group:
- Added `RoamingMessagesImplGroup`.
- Dump API changes for Group RoamingMessages.
- [mock] Fix MockRoamingMessages missing MessageSource
- [core] Convert hierarchical TimeBasedRoamingMessagesImpl to common, to reduce code complexity
2023-01-05 02:33:27 +00:00
Him188
db601928ea [core] Rename CommonRoamingMessagesImpl to TimeBasedRoamingMessagesImpl. Extract RoamingMessagesImplFriend 2023-01-05 02:33:27 +00:00
StageGuard
2d0b4d470a [core] Proposal implementation of RoamingSupported for Group 2023-01-05 02:33:27 +00:00
Him188
3c580eead4 [core] Add default implementation for RoamingMessages.getMessagesStream 2023-01-05 02:33:27 +00:00
StageGuard
5a73c75554 [core] decode MessageSvc.PbGetGroupMsg and OidbSvc.0x88d_0 2023-01-05 02:33:27 +00:00
cssxsh
2cffb7a4a4 [core] feat: RockPaperScissors (#2220)
* [core] feat: RockPaperScissors

Co-authored-by: Karlatemp <kar@kasukusakura.com>

* docs update

* rename `eliminate` to `eliminates`

Co-authored-by: Karlatemp <kar@kasukusakura.com>
2023-01-03 10:00:32 +08:00
Him188
eea2ef509d [core] Delete cache file if exception occurred while loading GroupMemberListCache. Fix #2399 2023-01-02 16:13:01 +00:00
Karlatemp
62ae2ac03c [console] Create PluginOnDisableCalledOnlyOnceTest test; Fix tests 2023-01-02 23:43:33 +08:00
Karlatemp
6b1aa9c80b [console] Fix JvmPlugin disabling multiple times; Introduce JvmPlugin status 2023-01-02 23:43:33 +08:00
Karlatemp
2f759c199a [console] Fix plugin disabling order control 2023-01-02 23:43:32 +08:00
Karlatemp
b59c7336d0 [console] Make JvmPluginLoader a child job of PluginManager 2023-01-02 23:43:32 +08:00
微莹·纤绫
553ea9abbc [core] Introduce CacheValidator for validating caches (#2388)
* [core] Export DeviceInfo.serializer() to mirai-core

* [core] Introduce CacheValidator for validating caches
2023-01-02 15:39:36 +00:00
Him188
6365e23f2c [core] Change StdoutLogger color for WARNING. Fix #2336.
Commit 28030dfb05 fixed this problem for PlatformLogger
2022-12-27 17:54:34 +00:00