diff options
Diffstat (limited to 'lib/telegram/room.ex')
-rw-r--r-- | lib/telegram/room.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/telegram/room.ex b/lib/telegram/room.ex index ca8a437..49fc06d 100644 --- a/lib/telegram/room.ex +++ b/lib/telegram/room.ex @@ -55,9 +55,9 @@ defmodule Nola.TelegramRoom do %{"network" => net, "channel" => chan} = tg_room Logger.info("Starting ChatBot for room #{id} \"#{chat["title"]}\" #{inspect tg_room}") irc_plumbed = if net && chan do - {:ok, _} = Registry.register(IRC.PubSub, "#{net}/#{chan}:messages", plugin: __MODULE__) - {:ok, _} = Registry.register(IRC.PubSub, "#{net}/#{chan}:triggers", plugin: __MODULE__) - {:ok, _} = Registry.register(IRC.PubSub, "#{net}/#{chan}:outputs", plugin: __MODULE__) + {:ok, _} = Registry.register(Nola.PubSub, "#{net}/#{chan}:messages", plugin: __MODULE__) + {:ok, _} = Registry.register(Nola.PubSub, "#{net}/#{chan}:triggers", plugin: __MODULE__) + {:ok, _} = Registry.register(Nola.PubSub, "#{net}/#{chan}:outputs", plugin: __MODULE__) true else Logger.warn("Did not found telegram match for #{id} \"#{chat["title"]}\"") |