Files
plantid-discord-bot/lib/commands.ex
T
owenrees 0eddf04678 Projects and Diseases placeholder application commands (#17)
* fix module name in backup

* save projects to persistent_term

* retrieve projects on bot startup

* remove commented out code

* register project autocomplete

* placeholder text for project

* placeholder disease command
2025-12-08 08:53:48 +01:00

64 lines
1.4 KiB
Elixir

defmodule PlantIdDiscordBot.Consumer.Commands do
@moduledoc """
Application commands.
"""
def global_application_commands do
[
%{
name: "source",
description: "Link to the source code for this bot",
options: []
},
%{
name: "invite",
description: "Invite link for this bot",
options: []
},
%{
name: "help",
description: "Help information for this bot",
options: []
},
%{
name: "info",
description: "Information about this bot",
options: []
},
%{
name: "stats",
description: "Statistics about this bot",
options: []
},
%{
name: "status",
description: "API Status",
options: []
},
%{
name: "servers",
description: "All servers that this bot belongs to",
options: []
},
%{
name: "diseases",
description: "Identify diseases from photos",
options: []
},
%{
name: "projects",
description: "Plants grouped by region or type, for identification",
options: [
%{
# STRING
type: 3,
name: "project",
description: "Search for a project",
required: true,
autocomplete: true
}
]
}
]
end
end