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

defmodule Thulani do
  use Application

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

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