summaryrefslogtreecommitdiff
path: root/lib/lsg/application.ex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/lsg/application.ex7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/lsg/application.ex b/lib/lsg/application.ex
index 972767f..a12253b 100644
--- a/lib/lsg/application.ex
+++ b/lib/lsg/application.ex
@@ -15,13 +15,18 @@ defmodule LSG.Application do
worker(Registry, [[keys: :duplicate, name: LSG.BroadcastRegistry]], id: :registry_broadcast),
worker(LSG.IcecastAgent, []),
worker(LSG.Token, []),
+ worker(LSG.AuthToken, []),
+ {GenMagic.Pool, [name: LSG.GenMagic, pool_size: 2]},
+ LSG.Telegram,
#worker(LSG.Icecast, []),
] ++ LSG.IRC.application_childs
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: LSG.Supervisor]
- Supervisor.start_link(children, opts)
+ sup = Supervisor.start_link(children, opts)
+ LSG.IRC.after_start()
+ sup
end
# Tell Phoenix to update the endpoint configuration