diff options
author | Jordan Bracco <href@random.sh> | 2022-12-17 14:01:18 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:41 +0100 |
commit | 67754dc5366976b0f4300af2d1798baa81423df5 (patch) | |
tree | ea7d78652e52e8e347f1976c4b2777cd6565462f /lib/lsg | |
parent | Nola rename cont. pt. 2. Refs T77. (diff) |
Nola rename, cont. pt. 3. Refs T77.
`s/:lsg/:nola/g`
Diffstat (limited to 'lib/lsg')
-rw-r--r-- | lib/lsg/application.ex | 4 | ||||
-rw-r--r-- | lib/lsg/icecast.ex | 2 | ||||
-rw-r--r-- | lib/lsg/lsg.ex | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/lsg/application.ex b/lib/lsg/application.ex index 1782053..4f3d1da 100644 --- a/lib/lsg/application.ex +++ b/lib/lsg/application.ex @@ -45,9 +45,9 @@ defmodule Nola.Application do end defp start_telegram() do - token = Keyword.get(Application.get_env(:lsg, :telegram, []), :key) + token = Keyword.get(Application.get_env(:nola, :telegram, []), :key) options = [ - username: Keyword.get(Application.get_env(:lsg, :telegram, []), :nick, "beauttebot"), + username: Keyword.get(Application.get_env(:nola, :telegram, []), :nick, "beauttebot"), purge: false ] telegram = Telegram.Bot.ChatBot.Supervisor.start_link({Nola.Telegram, token, options}) diff --git a/lib/lsg/icecast.ex b/lib/lsg/icecast.ex index 60fb45a..5a53192 100644 --- a/lib/lsg/icecast.ex +++ b/lib/lsg/icecast.ex @@ -41,7 +41,7 @@ defmodule Nola.Icecast do Logger.error "Icecast HTTP Error: #{inspect error}" state end - interval = Application.get_env(:lsg, :icecast_poll_interval, 60_000) + interval = Application.get_env(:nola, :icecast_poll_interval, 60_000) :timer.send_after(interval, :poll) state end diff --git a/lib/lsg/lsg.ex b/lib/lsg/lsg.ex index 11d0e24..0acb76e 100644 --- a/lib/lsg/lsg.ex +++ b/lib/lsg/lsg.ex @@ -7,8 +7,8 @@ defmodule Nola do owner_email: "contact@my.nola.bot" ] - def env(), do: Application.get_env(:lsg) - def env(key, default \\ nil), do: Application.get_env(:lsg, key, default) + def env(), do: Application.get_env(:nola) + def env(key, default \\ nil), do: Application.get_env(:nola, key, default) def brand(), do: env(:brand, @default_brand) def brand(key), do: Keyword.get(brand(), key) @@ -20,11 +20,11 @@ defmodule Nola do end def data_path do - Application.get_env(:lsg, :data_path) + Application.get_env(:nola, :data_path) end def version do - Application.spec(:lsg)[:vsn] + Application.spec(:nola)[:vsn] end end |