1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-25 21:23:55 +08:00

Fix build

This commit is contained in:
Him188 2020-02-07 11:04:57 +08:00
parent abfc40096a
commit 2cb119392b

View File

@ -24,7 +24,6 @@ import net.mamoe.mirai.message.data.buildXMLMessage
import net.mamoe.mirai.message.data.getValue
import net.mamoe.mirai.message.sendAsImageTo
import net.mamoe.mirai.utils.ContextImpl
import net.mamoe.mirai.utils.io.toUHexString
import java.io.File
import java.util.*
import javax.swing.filechooser.FileSystemView
@ -132,7 +131,7 @@ suspend fun main() {
try {
image.downloadTo(newTestTempFile(suffix = ".png").also { reply("Temp file: ${it.absolutePath}") })
reply(image.md5.toUHexString() + " downloaded")
reply(image.miraiImageId + " downloaded")
} catch (e: Exception) {
e.printStackTrace()
reply(e.message ?: e::class.java.simpleName)