diff options
Diffstat (limited to '')
-rw-r--r-- | lib/lsg_irc/alcoolog_announcer_plugin.ex | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/lsg_irc/alcoolog_announcer_plugin.ex b/lib/lsg_irc/alcoolog_announcer_plugin.ex index 3902d5f..f90dc42 100644 --- a/lib/lsg_irc/alcoolog_announcer_plugin.ex +++ b/lib/lsg_irc/alcoolog_announcer_plugin.ex @@ -1,4 +1,4 @@ -defmodule LSG.IRC.AlcoologAnnouncerPlugin do +defmodule Nola.IRC.AlcoologAnnouncerPlugin do require Logger @moduledoc """ @@ -27,7 +27,7 @@ defmodule LSG.IRC.AlcoologAnnouncerPlugin do def start_link(), do: GenServer.start_link(__MODULE__, [], name: __MODULE__) def log(account) do - dets_filename = (LSG.data_path() <> "/" <> "alcoologlog.dets") |> String.to_charlist + dets_filename = (Nola.data_path() <> "/" <> "alcoologlog.dets") |> String.to_charlist {:ok, dets} = :dets.open_file(dets_filename, [{:type,:bag}]) from = ~U[2020-08-23 19:41:40.524154Z] to = ~U[2020-08-24 19:41:40.524154Z] @@ -49,11 +49,11 @@ defmodule LSG.IRC.AlcoologAnnouncerPlugin do {:ok, _} = Registry.register(IRC.PubSub, "account", []) stats = get_stats() Process.send_after(self(), :stats, :timer.seconds(30)) - dets_filename = (LSG.data_path() <> "/" <> "alcoologlog.dets") |> String.to_charlist + dets_filename = (Nola.data_path() <> "/" <> "alcoologlog.dets") |> String.to_charlist {:ok, dets} = :dets.open_file(dets_filename, [{:type,:bag}]) ets = nil # :ets.new(__MODULE__.ETS, [:ordered_set, :named_table, :protected, {:read_concurrency, true}]) - #:ok = LSG.IRC.SettingPlugin.declare("alcoolog.alerts", __MODULE__, true, :boolean) - #:ok = LSG.IRC.SettingPlugin.declare("alcoolog.aperoalert", __MODULE__, true, :boolean) + #:ok = Nola.IRC.SettingPlugin.declare("alcoolog.alerts", __MODULE__, true, :boolean) + #:ok = Nola.IRC.SettingPlugin.declare("alcoolog.aperoalert", __MODULE__, true, :boolean) # {:ok, {stats, now(), dets, ets}}#, {:continue, :traverse}} end @@ -262,7 +262,7 @@ defmodule LSG.IRC.AlcoologAnnouncerPlugin do end defp get_stats() do - Enum.into(LSG.IRC.AlcoologPlugin.get_all_stats(), %{}) + Enum.into(Nola.IRC.AlcoologPlugin.get_all_stats(), %{}) end defp timer() do |