HomingPigeon/lib/carrierpidgeon.ex

21 lines
416 B
Elixir
Raw Normal View History

2022-11-10 14:35:02 -05:00
defmodule CarrierPidgeon do
@moduledoc """
Entrypoint
"""
2020-07-16 23:11:18 -04:00
use Application
2022-11-10 14:35:02 -05:00
alias CarrierPidgeon.IrcNetworkSupervisor
alias CarrierPidgeon.DiscordHandler
alias CarrierPidgeon.WebhookService
2020-07-16 23:11:18 -04:00
def start(_type, _args) do
children = [
{DiscordHandler, []},
{WebhookService, []},
{IrcNetworkSupervisor, []}
]
2020-07-16 23:11:18 -04:00
Supervisor.start_link(children, strategy: :one_for_one)
2020-07-16 23:11:18 -04:00
end
end