mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
/source application command with test
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
defmodule PlantIdDiscordBot.Cog.Info do
|
||||
use Nostrum.Consumer
|
||||
|
||||
@api Application.compile_env(:plantid_discord_bot, :api)
|
||||
@source Application.compile_env(:plantid_discord_bot, :source)
|
||||
|
||||
@doc """
|
||||
Sends a link to the source code for this bot.
|
||||
"""
|
||||
def source(interaction) do
|
||||
@api.create_interaction_response(interaction, %{type: 4, data: %{content: @source}})
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user