From 92bf62347c94f0a5f3b5850ada29d9aee2e3b298 Mon Sep 17 00:00:00 2001 From: RTAkland Date: Tue, 8 Oct 2024 20:47:49 +0800 Subject: [PATCH] chore: format size --- .../kotlin/cn/rtast/fancybot/commands/parse/AsciiArtCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/cn/rtast/fancybot/commands/parse/AsciiArtCommand.kt b/src/main/kotlin/cn/rtast/fancybot/commands/parse/AsciiArtCommand.kt index 5d7a4db..ca2b237 100644 --- a/src/main/kotlin/cn/rtast/fancybot/commands/parse/AsciiArtCommand.kt +++ b/src/main/kotlin/cn/rtast/fancybot/commands/parse/AsciiArtCommand.kt @@ -121,7 +121,7 @@ class AsciiArtCommand : BaseCommand() { val gifBytes = decoder.makeGif(asciiFrames) logger.info("合并完成") val gifBase64 = gifBytes.encodeToBase64() - logger.info("处理后的图片大小: ${gifBytes.size}字节") + logger.info("处理后的图片大小: ${(gifBytes.size / 1024 / 1024).toInt()}MB") val msg = MessageChain.Builder() .addImage(gifBase64, true) message.reply(msg.build())