23 lines
597 B
GDScript
23 lines
597 B
GDScript
extends RefCounted
|
|
|
|
#func on_ready(main, bot: DiscordBot) -> void:
|
|
# pass
|
|
#
|
|
#func on_autocomplete(main, bot: DiscordBot, interaction: DiscordInteraction, options: Array) -> void:
|
|
# pass
|
|
|
|
func execute(main, bot: DiscordBot, interaction: DiscordInteraction, options: Array) -> void:
|
|
|
|
var response : String = "Listing printers..."
|
|
var embed = Embed.new().set_description(Library.list_printers())
|
|
|
|
interaction.reply({
|
|
"content": response,
|
|
"embeds":[embed]
|
|
})
|
|
pass
|
|
|
|
var data = ApplicationCommand.new()\
|
|
.set_name("printer-status")\
|
|
.set_description("view the status of all printers")\
|
|
|