diff options
author | Jordan Bracco <href@random.sh> | 2022-12-20 03:37:05 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:42 +0100 |
commit | 8a130bbafe90b45bf99e63091d11082e0a675c1b (patch) | |
tree | b0c129724b9d00da2a9cff261891955ab98cb739 /lib/irc/nola_irc.ex | |
parent | Rename IRC.{Message,Trigger} to Nola.{Message,Trigger}, refs T77. (diff) |
More IRC. cleanup, refs T77.
Diffstat (limited to 'lib/irc/nola_irc.ex')
-rw-r--r-- | lib/irc/nola_irc.ex | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/irc/nola_irc.ex b/lib/irc/nola_irc.ex deleted file mode 100644 index 4ed94d1..0000000 --- a/lib/irc/nola_irc.ex +++ /dev/null @@ -1,25 +0,0 @@ -defmodule Nola.IRC do - require Logger - - def env(), do: Nola.env(:irc) - def env(key, default \\ nil), do: Keyword.get(env(), key, default) - - def application_childs do - import Supervisor.Spec - - IRC.Connection.setup() - - [ - worker(Registry, [[keys: :duplicate, name: IRC.ConnectionPubSub]], id: :registr_irc_conn), - supervisor(IRC.Connection.Supervisor, [], [name: IRC.Connection.Supervisor]), - supervisor(IRC.PuppetConnection.Supervisor, [], [name: IRC.PuppetConnection.Supervisor]), - ] - end - - # Start plugins first to let them get on connection events. - def after_start() do - Logger.info("Starting connections") - IRC.Connection.start_all() - end - -end |