Commit Graph

7761 Commits

Author SHA1 Message Date
Him188
c9fe87d7f7 Remove submodule mirai-console 2021-12-06 14:56:50 +00:00
Him188
8fe02ba90d Move all files into mirai-console subfolder 2021-12-06 14:51:44 +00:00
Him188
1113856cb4 Remove buildscripts 2021-12-06 14:50:18 +00:00
Him188
61ce69c328 Configure publishing for mirai-bom 2021-12-06 14:31:25 +00:00
Him188
5cccc7755d Add notice 2021-12-06 12:03:26 +00:00
Karlatemp
561d333cc7
NetInternalKit 2021-12-05 18:28:44 +08:00
微莹·纤绫
d10d20302e
Dokka (#1708)
* dokka

* test

* Fix classpath

* Fix deploy

* Fix deploy

* Fix deploy

* GitHub workflows
2021-12-04 15:43:09 +00:00
Eritque arcus
22e2ea18e6
Using PluginId as folder name (#418)
* using pluginId as folder name

* using pluginId as folder name

* if failure, abort

* move to `BuiltInJvmPluginLoaderImpl`

* improve hint(1/2)

Co-authored-by: Him188 <Him188@mamoe.net>

* improve hint(2/2)

Co-authored-by: Him188 <Him188@mamoe.net>

* modify as require

* Update BuiltInJvmPluginLoaderImpl.kt

* Update backend/mirai-console/src/internal/plugin/BuiltInJvmPluginLoaderImpl.kt

Co-authored-by: Him188 <Him188@mamoe.net>

* modify as requirements, tested

* upload tests

* bypass

* change function name and except cancel

* support moving to empty folder, tested

* modify

* Fix reference

Co-authored-by: Him188 <Him188@mamoe.net>
2021-12-03 19:37:43 +00:00
Him188
0675ccbbd8 Tentatively fix tests regarding initialization of multiple Mirai Console instances 2021-12-01 18:08:41 +00:00
Him188
66367c893c Rewrite AbstractConsoleTest, fix cancellation issues 2021-12-01 17:54:05 +00:00
Him188
2dda2ff31b Do not call 'exitProcess' in console backend, but in terminal 2021-12-01 17:39:17 +00:00
TheFatCat
ad1ee9a661
对实现事件部分详细描述 (#1688)
* 对实现事件部分详细描述

* reaction to reviews

Update docs/Events.md

Apply suggestions from code review

Co-Authored-By: Him188 <Him188@mamoe.net>
Co-Authored-By: Karlatemp <karlatemp@vip.qq.com>

* Update Events.md

* 打少半边括号丢死人了草

* Update Events.md

* Update Events.md

Co-authored-by: Him188 <Him188@mamoe.net>
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-11-30 13:07:02 +00:00
Him188
74fc5a5037 Throw specific SendMessageFailedException when reaching group chat limit, close #1220 2021-11-30 13:06:01 +00:00
Him188
a989ea9db1 Add SendMessageFailedException, change supertypes of MessageTooLargeException and BotIsBeingMutedException to the new exception 2021-11-30 13:06:01 +00:00
Him188
8b99cc45fb Implement multi versioned DeviceInfo, implement DeviceInfo v2 which stores properties as String and hex strings instead of ByteArrays. 2021-11-29 14:33:20 +00:00
Him188
d5d0b35806 Add DeviceInfo.random(Random) and implement equals and hashCode for DeviceInfo 2021-11-29 14:33:20 +00:00
NaturalHG
9549626e10
Update README-eng.md 2021-11-28 15:28:53 -05:00
Eritque arcus
96dced9132
logout command (#417)
* logout command

* modify

* fix `sender`

* improve log

Co-authored-by: Him188 <Him188@mamoe.net>

* del `scopeWith`

Co-authored-by: Him188 <Him188@mamoe.net>
2021-11-26 18:22:37 +00:00
Him188
29f6ece98b
Add AbstractJvmPlugin.save and AbstractJvmPlugin.savePluginData, close #408 (#420) 2021-11-26 18:22:22 +00:00
Him188
5b16414e9e Add note to NormalMemberImpl.kick 2021-11-26 18:21:48 +00:00
Him188
f6018d1943 Fix build 2021-11-26 18:21:20 +00:00
Him188
ca80f5285f Throw specific ISE when kicking members too fast, close #1503 2021-11-26 18:04:35 +00:00
Him188
8e8dd0e26b minor: Do not use Member but required properties in TroopManagement.Kick 2021-11-26 18:04:35 +00:00
Him188
25970cbf56 minor: move NormalMember.kick overloads from mirai-core to mirai-core-api 2021-11-26 17:59:07 +00:00
Him188
a8e3916261 Add @DeprecatedSinceMirai, close #1669 2021-11-26 17:50:25 +00:00
Him188
64920a399e Throw a specific exception when reaching maximum AtAll times limit, fix #1201 2021-11-26 17:31:35 +00:00
Xwdit
30710e0b95
向开发文档的README中添加了新的社区SDK (#1696)
向开发文档的README中添加了新的社区SDK:
RainyBot - https://github.com/Xwdit/RainyBot-Core
2021-11-25 12:33:23 +00:00
Him188
7c550bff7d
Add Image.Factory and Image.Builder for constructing Image inst… (#1673)
* Add `Image.Factory` and `Image.Builder` for constructing `Image` instances with specific properties. close #1672

* Remove redundant `create`s

* Add docs for `Image.Builder`

* Remove Image.Factory, use Image.Builder in all places.

* Fix cache & parameters

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-11-20 23:36:14 +00:00
Karlatemp
3bd56bd480
Replace Bug Report to GitHub issue forms [no ci] 2021-11-20 20:49:37 +08:00
Karlatemp
a35a19ffcc
Fix LightApp refining; fix #1660 2021-11-20 18:15:09 +08:00
Karlatemp
511d1fa4f8
Fix NetReplayHelper [no ci] 2021-11-20 17:40:58 +08:00
Karlatemp
fe2d8332fe
Fix logger name; fix mamoe/mirai#1691 2021-11-20 00:22:24 +08:00
Karlatemp
3da565ab02
AbstractRealTimeActionTestUnit 2021-11-19 23:12:09 +08:00
Karlatemp
813d8485b6 Fix AbsoluteFileFolder resolving with absolute path 2021-11-19 15:06:41 +00:00
Him188
735e31551a Revert "Upgrade buildscript for Kotlin 1.6.0, use Gradle 7.2"
This reverts commit 9711c5eb3e.
2021-11-19 01:14:01 +00:00
Him188
fffefbacef Avoid killing JVM in Gradle tests 2021-11-19 01:13:27 +00:00
Him188
dc2b4d2b7b Ignore internal deprecation 2021-11-18 03:11:37 +00:00
Him188
fe46ea4740 Automatically generate VersionConstants.kt 2021-11-18 03:11:27 +00:00
Him188
9711c5eb3e Upgrade buildscript for Kotlin 1.6.0, use Gradle 7.2 2021-11-18 03:05:49 +00:00
Him188
a97749e736 Update console ref 2021-11-18 00:17:08 +00:00
Him188
538dd66e72 Rewrite tests for mirai-console-gradle with Kotlin 2021-11-18 00:15:53 +00:00
sandtechnology
4e3873c3d3
Fix #1674, apply right nick and remark impl to contact design (#1678)
* Fix #1674, apply right nick and remark impl for contact design

* Fix build, add missed member impl

* Fix wrong delegate in AbstractMember impl

Co-authored-by: sandtechnology <a1294790523@hotmail.com>

Co-authored-by: Him188 <him188@mamoe.net>
2021-11-16 14:54:39 +00:00
Karlatemp
736f52275f
Drop InternalFlag in MessageReceipt 2021-11-16 22:12:02 +08:00
Him188
bd041e43d1
Support Image.isUploaded, (#1671)
* Support `Image.isUploaded`,
add member `Image.md5`,
add `Image.calculateImageMd5ByImageId`,
close #1401

* Update docs
2021-11-16 10:50:17 +00:00
Karlatemp
79d92a0114
Fix old RemoteFile uploading logic 2021-11-16 18:21:55 +08:00
Karlatemp
cf2b4a193c
Fix bytecode analyze 2021-11-16 18:13:22 +08:00
Karlatemp
42510d7c1c
Fix UserProfile.sign, fix #1620 2021-11-16 12:32:55 +08:00
Karlatemp
2422aa34b5
Add image caches; Fix deserialized image not rendering in ForwardMessage; fix #1507, fix #1636 2021-11-16 12:32:28 +08:00
Karlatemp
b5d8c708bd
Redesign MultiMsg; Support nested ForwardMessage sending; close #1198 2021-11-16 12:32:28 +08:00
Karlatemp
b42a57736d
Fix ServiceMessage not refined in ANDROID_WATCH; fix #1652 2021-11-16 12:29:11 +08:00