chore: use ext property instead of func

This commit is contained in:
2024-10-08 17:06:01 +08:00
parent 95a6abbfb3
commit 9ff4f03b24
3 files changed
+3 -5

No files matched your search

@@ -26,7 +26,7 @@ class TheCatCommand : BaseCommand() {
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
val imageBase64= Http.get(theCatApiUrl)
.fromArrayJson<List<Cat>>().first().url
.proxy().toURL().readBytes().encodeToBase64()
.proxy.toURL().readBytes().encodeToBase64()
val msg = MessageChain.Builder().addImage(imageBase64, true).build()
message.reply(msg)
}