Commit Graph

7815 Commits

Author SHA1 Message Date
ryoii
bc8fea2195
Fix AbsoluteFolder.resolveFileById for recursive (#2033)
```kotlin
@Test
    fun testFirst() {
        val f = { a: Int ->
            if (a > 0) a
            else null
        }

        val a = listOf<Int>(-1, -2, -1, -1)
        
        assertEquals(
            a.map{ f(it) }.firstOrNull(),
            null
        )
    }
```
2022-05-15 18:48:52 +01:00
cssxsh
c6b47a3231
Fix MarketFace contentToString, return '[商城表情]' if original name is empty (#2030) 2022-05-14 11:14:36 +01:00
Him188
0d3bc9c684 Fix HB logic: catch TimeoutCancellationException from HB action and report it as non-fatal error. Fix #2024 2022-05-09 08:58:47 +01:00
Him188
71fb5585fe Update docs for NetworkHandler 2022-05-08 09:56:27 +01:00
Him188
0da75d31b9 Fix readStringListFromEnv when no env specified 2022-05-08 09:48:10 +01:00
TheFatCat
9d18d79d66
fix docs and add java example (#2021) 2022-05-07 07:36:12 +01:00
hundun
5f758d00e2
fix doc (#2019)
[skip ci]
2022-05-07 10:47:46 +08:00
Him188
b16b3a58ac sendAndExpect: complete the result of the listener with last exception only if it has not yet completed. Maybe fix #2006. 2022-05-06 15:51:44 +01:00
Him188
008398bd84
Update README.md 2022-05-06 14:47:17 +01:00
Karlatemp
cb3bba986c
Fix IMirai initialize; Fix #1861; Fix some error caused by d757764308 2022-05-06 17:47:22 +08:00
Karlatemp
78d0cdd155
Fix bom dependencies again; Fix #1975 2022-05-05 22:44:48 +08:00
Karlatemp
e3b372e643
Fix snapshot page uploading 2022-05-04 17:22:52 +08:00
Karlatemp
784c78a010
Move UpdateSnapshotPage up buildSrc 2022-05-04 16:55:53 +08:00
Karlatemp
8250c3da65
Using PlatformClassLoader to resolve java.*; fix #2009 2022-05-04 16:36:13 +08:00
cssxsh
edf7622b0b
fix: ContactOrBot.render (#2010) 2022-05-04 16:28:14 +08:00
Him188
400710d0cc
Update UserManual.md 2022-05-03 12:44:11 +01:00
Him188
4fa853065c Add BotConfiguration.disableAccountSecretes 2022-05-02 14:01:53 +01:00
Karlatemp
115c987c2d
[skip ci] Fix documents building 2022-05-02 19:31:02 +08:00
Him188
a7633cc327 Set version to 2.12.0 2022-05-02 11:20:44 +01:00
Him188
3a4a8d01a3 Fix test can auto log 2022-05-02 11:20:23 +01:00
Him188
61d68c245d Refine docs examples 2022-05-02 11:16:24 +01:00
Him188
8c9d2e4707 添加插件文档 "使用日志" 2022-05-02 11:14:23 +01:00
Him188
54eb4387e4 Make log4j.Logger.asMiraiLogger and useLog4j2 stable 2022-05-02 11:13:55 +01:00
Him188
ce3cbbf771 Fix docs reference to mirai-console-intellij on JB plugins 2022-05-02 10:37:30 +01:00
Him188
2a417445a7 Invalidate account.secretes on failure to lo in 2022-05-02 10:15:02 +01:00
Him188
ed37609731 Fix TarsInput, fix #1998 2022-05-02 09:59:51 +01:00
Him188
7a6c7a89c0
Update docs for console plugin (#1995)
* Update docs for console plugin

* Update [skip ci]

* Update docs

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2022-05-01 18:03:10 +01:00
Him188
6b5f9e2eef Change file suffix of new plugins to '.mirai2.jar'. Ignore '.mirai.jar' if its '.mirai2.jar' counterparts loaded. Close #1999 2022-05-01 17:59:05 +01:00
xtexChooser
cb08f4789c
buildscript: remove unused codes (#2000) 2022-04-30 14:03:39 +01:00
Karlatemp
c37576fda7
Log exception when failed to initialize java.desktop for better user debugging; Use CLI if in headless mode 2022-04-30 12:49:28 +08:00
Him188
4993e59fd0 JavaPluginSchedulerImpl: run jobs with runInterruptible 2022-04-27 12:53:33 +01:00
Him188
3ccc07d5f4 Disable parallel compilation 2022-04-27 09:51:28 +01:00
Him188
00c74ec13f
Update dynamic-delegation to 0.3.0-162.4 2022-04-26 20:03:35 +01:00
Him188
67a9724143 Enable parallel compilation for all Kotlin modules 2022-04-26 11:20:22 +01:00
Him188
bb8cd86daa Update dependencies:
Kotlin 1.6.21
Dokka 1.6.20
coroutines 1.6.1
atomifFU 0.17.2
serialization 1.3.2
ktor 1.6.7
blocking-bridge 2.0.0-162.1
dynamic-delegation 0.3.0-162.2
2022-04-26 11:12:35 +01:00
Him188
acb048c267 Add errorSince information for deprecation for BotConfiguration.json 2022-04-25 15:50:46 +01:00
Him188
d757764308 Remove MiraiImpl.INSTANCE and move initialization process to MiraiImpl.<clinit>. Close #1992 2022-04-25 15:49:43 +01:00
Him188
e2477645cd Migrate references of JAutoSavePluginConfig in docs 2022-04-25 14:18:14 +01:00
Him188
3be16c4644 Code cleanup. Remove duplicated internal utilities. 2022-04-25 14:15:29 +01:00
Him188
e7dcf676fc Handle leading length for ByteArray.loadAs, fix deserialization problem with RequestPush. Fix #1991, #1899. 2022-04-25 14:06:31 +01:00
Him188
2780fc4761 Fix build 2022-04-24 16:47:42 +01:00
Him188
854b55f216 Add plugin tests PluginResolveSelfDependenciesOverConsoleOnes, close #1981 2022-04-24 16:18:22 +01:00
Him188
556c805448 console IT: Do not delete entire test sandbox, keep libraries 2022-04-24 16:15:17 +01:00
Him188
97ce422b33 Update docs for console IT 2022-04-24 15:45:58 +01:00
Him188
112bf537cc Try useExperimentalAnnotation if optIn not defined 2022-04-24 15:30:02 +01:00
Him188
7f85319a92 Deprecate BotConfiguration.json 2022-04-24 15:30:02 +01:00
Him188
a4562a7aef buildPlugin: Change output directory back to build/mirai 2022-04-24 15:30:02 +01:00
Him188
0e72fe9757 Use optIn, close #1986 2022-04-24 15:20:14 +01:00
Him188
ffbe540800 Fix AbstractPluginData.findBackingFieldValueNode 2022-04-24 15:05:53 +01:00
Him188
45defb32a2 Fix support for Any and support primitive and reference arrays, close #1801 2022-04-24 15:05:44 +01:00