diff --git a/lib/supervisor.ex b/lib/supervisor.ex index 1b89d57..e1af38a 100644 --- a/lib/supervisor.ex +++ b/lib/supervisor.ex @@ -16,8 +16,9 @@ defmodule Omnibot.Supervisor do {Task.Supervisor, name: Omnibot.RouterSupervisor, strategy: :one_for_one}, {Omnibot.State, cfg: cfg, name: Omnibot.State}, {Omnibot.ModuleSupervisor, cfg: cfg, name: Omnibot.ModuleSupervisor}, - {Omnibot.Irc, name: Omnibot.Irc}, - ] + ] ++ unless IEx.started?(), + do: [{Omnibot.Irc, name: Omnibot.Irc}], + else: [] # TODO : how to handle config reloading?