mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
02372f2076
* added list of tasks to achieve * update deps * update elixir version in CI/CD pipeline * update todo with branch push checks * underscores separation of large numbers * update elixir version and deps * add basic module docs * remove IO.inspect call * check if list is empty rather than traversing list for length * revert empty list code * duration tests * add mime type tests * use logger instread of inspect, remove todos * replace list length check with Enum.empty * replace list length check with !Enum.empty? * numbers readability fix by using underscores on large numbers * iucn parser replaced case with multiclause function and added test * replace map and join with map_join * fix multiple spec issues where map() must be inside a list
45 lines
945 B
Elixir
45 lines
945 B
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: []
|
|
}
|
|
]
|
|
end
|
|
end
|