File tree 2 files changed +4
-16
lines changed
src/main/kotlin/io/github/gnuf0rce/mirai/censor
2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -24,24 +24,13 @@ repositories {
24
24
}
25
25
26
26
dependencies {
27
- implementation(" xyz.cssxsh.baidu:baidu-aip:3.0.0" ) {
28
- exclude(group = " org.jetbrains.kotlin" )
29
- exclude(group = " io.ktor" )
30
- }
31
- implementation(" io.ktor:ktor-client-serialization:1.6.7" ) {
32
- exclude(group = " org.jetbrains.kotlin" )
33
- exclude(group = " org.jetbrains.kotlinx" )
34
- exclude(group = " org.slf4j" )
35
- exclude(group = " io.ktor" , module = " ktor-client-core" )
36
- }
37
- implementation(" io.ktor:ktor-client-encoding:1.6.7" ) {
27
+ implementation(" xyz.cssxsh.baidu:baidu-aip:3.1.0" ) {
38
28
exclude(group = " org.jetbrains.kotlin" )
39
29
exclude(group = " org.jetbrains.kotlinx" )
40
30
exclude(group = " org.slf4j" )
41
- exclude(group = " io.ktor" , module = " ktor-client-core" )
42
31
}
43
- compileOnly(" xyz.cssxsh.mirai:mirai-administrator:1.1.0 " )
44
- compileOnly(" net.mamoe:mirai-core-utils:2.11.1 " )
32
+ compileOnly(" xyz.cssxsh.mirai:mirai-administrator:1.2.4 " )
33
+ compileOnly(" net.mamoe:mirai-core-utils:2.12.0 " )
45
34
//
46
35
testImplementation(kotlin(" test" , " 1.6.21" ))
47
36
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package io.github.gnuf0rce.mirai.censor
3
3
import io.github.gnuf0rce.mirai.censor.data.*
4
4
import io.ktor.client.*
5
5
import io.ktor.client.engine.okhttp.*
6
- import io.ktor.client.features .*
6
+ import io.ktor.client.plugins .*
7
7
import io.ktor.http.*
8
8
import io.ktor.utils.io.errors.*
9
9
import kotlinx.coroutines.*
@@ -18,7 +18,6 @@ public object MiraiContentCensor : AipContentCensor(client = object : BaiduAipCl
18
18
19
19
override val apiIgnore : suspend (Throwable ) -> Boolean = { throwable ->
20
20
when (throwable) {
21
- is HttpRequestTimeoutException ,
22
21
is IOException
23
22
-> {
24
23
logger.warning { " AipContentCensor Ignore: $throwable " }
You can’t perform that action at this time.
0 commit comments