chore: format code
This commit is contained in:
4 files changed
+5
-5
No files matched your search
@@ -26,7 +26,7 @@ class TheCatCommand : BaseCommand() {
|
||||
private val theCatApiUrl = "https://api.thecatapi.com/v1/images/search"
|
||||
|
||||
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
||||
val imageBase64= Http.get(theCatApiUrl)
|
||||
val imageBase64 = Http.get(theCatApiUrl)
|
||||
.fromArrayJson<List<Cat>>().first().url
|
||||
.proxy.toURL().readBytes().encodeToBase64()
|
||||
val msg = MessageChain.Builder().addImage(imageBase64, true).build()
|
||||
|
||||
Reference in New Issue
Block a user