aboutsummaryrefslogtreecommitdiff
path: root/lib/application.ex
blob: 958ab7d607c4b6d7898b8e59810531bcdb3b2261 (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 [
    {Phoenix.PubSub, name: :thulani_pubsub},
    {Registry, keys: :unique, name: Thulani.Audio.Registry},
    Thulani.Repo,
    Thulani.DiscordConsumer,
    Nosedrum.TextCommand.Storage.ETS
  ]

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