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,15 @@
|
||||
defmodule PlantIdDiscordBot.Application do
|
||||
use Application
|
||||
|
||||
@port Application.compile_env(:plantid_discord_bot, :port)
|
||||
|
||||
@impl true
|
||||
def start(_type, _args) do
|
||||
children = [
|
||||
PlantIdDiscordBot
|
||||
]
|
||||
|
||||
opts = [strategy: :one_for_one, name: PlantIdDiscordBot.Supervisor]
|
||||
Supervisor.start_link(children, opts)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user