Skip to content

Commit

Permalink
✨ tree go nom
Browse files Browse the repository at this point in the history
  • Loading branch information
asoji committed Sep 13, 2024
1 parent 856df18 commit 4dcaa6d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package one.devos.yiski3.commands.silly

import dev.minn.jda.ktx.coroutines.await
import dev.minn.jda.ktx.messages.Embed
import net.dv8tion.jda.api.utils.FileUpload
import one.devos.yiski.common.annotations.YiskiModule
import one.devos.yiski.common.utils.EmbedHelpers
import one.devos.yiski.common.utils.EmbedHelpers.imageUpload
import one.devos.yiski.common.utils.PathsHelper
import one.devos.yiski3.Yiski3
import xyz.artrinix.aviation.command.slash.SlashContext
import xyz.artrinix.aviation.command.slash.annotations.SlashCommand
import xyz.artrinix.aviation.entities.Scaffold

@YiskiModule
class TreeEater : Scaffold {
@SlashCommand(name = "treeeater", description = "yes")
suspend fun treeeater(ctx: SlashContext) {
val treeEaterImage = Yiski3.config.images.inlineStaticImagesTables.treeeater

ctx.interaction.deferReply()
.setFiles(imageUpload(treeEaterImage))
.setEmbeds(Embed {
title = "Tree Eater"
description = "it's exactly what it sounds like"
image = "attachment://${treeEaterImage}"
color = EmbedHelpers.infoColor()
})
.await()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ data class StaticImageTables(
val lbrf: String,
val token: String,
val teehee: String,
val treeeater: String
)

@Serializable
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4dcaa6d

Please sign in to comment.