aboutsummaryrefslogtreecommitdiff
path: root/lib/application.ex
blob: be6d76f10d73dbc594ab77322a44118971016ead (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require Logger

defmodule Thulani do
  use Application

  @children [
    Thulani.DiscordConsumer,
    {Phoenix.PubSub, name: :thulani_pubsub},
    Thulani.Command,
    {Registry, keys: :unique, name: Thulani.Audio.Registry}
  ]

  def start(_typ, _arg) do
    Supervisor.start_link(
      @children,
      strategy: :one_for_one
    )
  end
end