separation of commands

This commit is contained in:
Owen
2024-12-22 11:35:09 +01:00
committed by Owen Rees
parent 39fa573fbc
commit bb4ddf5243
2 changed files with 49 additions and 10 deletions
+3 -10
View File
@@ -5,17 +5,10 @@ defmodule PlantIdDiscordBot.Consumer do
use Nostrum.Consumer
alias Nostrum.Api
alias PlantIdDiscordBot.Cog
alias PlantIdDiscordBot.Consumer.Commands
@global_application_commands Commands.global_application_commands()
@global_application_commands [
{"source", "Link to the source code for this bot, []"},
{"invite", "Invite link for this bot, []"},
{"help", "Help information for this bot, []"},
{"info", "Information about this bot, []"},
{"stats", "Statistics about this bot, []"},
{"status", "API Status, []"},
{"servers", "All servers that this bot belongs to, []"},
{"id", "ID a plant from up to 5 images, []"}
]
def handle_event({:READY}) do
# mock function depending on the environment
# Api.create_global_application_command(@global_application_commands)