From ca9065ef656e6d7e3f2d43ee8eedd53fbcd779af Mon Sep 17 00:00:00 2001 From: RTAkland Date: Fri, 20 Sep 2024 13:31:11 +0800 Subject: [PATCH] feat: add image to ascii image command --- .../kotlin/cn/rtast/fancybot/commands/parse/AsciiArtCommand.kt | 2 -- 1 file changed, 2 deletions(-) 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 528e42c..53a0d84 100644 --- a/src/main/kotlin/cn/rtast/fancybot/commands/parse/AsciiArtCommand.kt +++ b/src/main/kotlin/cn/rtast/fancybot/commands/parse/AsciiArtCommand.kt @@ -31,7 +31,6 @@ class AsciiArtCommand : BaseCommand() { val width = this.width val height = this.height val asciiArt = StringBuilder() - for (y in 0 until height step 2) { for (x in 0 until width) { val pixel = Color(this.getRGB(x, y)) @@ -58,7 +57,6 @@ class AsciiArtCommand : BaseCommand() { } asciiArt.append("\n") } - return asciiArt.toString() }