Skip to content

Commit efefc40

Browse files
committed
fix: handle 404 when downloading the image
1 parent aa36642 commit efefc40

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
}
1111

1212
group = "io.github.samarium150"
13-
version = "6.0.7"
13+
version = "6.0.8"
1414

1515
repositories {
1616
mavenCentral()

src/main/kotlin/MiraiConsoleLolicon.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import java.net.Proxy
3535
object MiraiConsoleLolicon : KotlinPlugin(
3636
JvmPluginDescription(
3737
id = "io.github.samarium150.mirai.plugin.mirai-console-lolicon",
38-
version = "6.0.7",
38+
version = "6.0.8",
3939
name = "Lolicon"
4040
) {
4141
author("Samarium150")
@@ -75,20 +75,17 @@ object MiraiConsoleLolicon : KotlinPlugin(
7575
socketTimeoutMillis = third
7676
}
7777
}
78+
expectSuccess = true
7879
}
7980

8081
Lolicon.trusted
8182
Lolicon.register()
82-
83-
logger.info("Plugin loaded")
8483
}
8584

8685
override fun onDisable() {
8786

8887
Lolicon.unregister()
8988

9089
client.close()
91-
92-
logger.info("Plugin unloaded")
9390
}
9491
}

0 commit comments

Comments
 (0)