diff options
Diffstat (limited to 'lib/lsg/lsg.ex')
-rw-r--r-- | lib/lsg/lsg.ex | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/lsg/lsg.ex b/lib/lsg/lsg.ex deleted file mode 100644 index 0acb76e..0000000 --- a/lib/lsg/lsg.ex +++ /dev/null @@ -1,30 +0,0 @@ -defmodule Nola do - - @default_brand [ - name: "Nola, - source_url: "https://phab.random.sh/source/Bot/", - owner: "Ashamed owner", - owner_email: "contact@my.nola.bot" - ] - - 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) - def name(), do: brand(:name) - def source_url(), do: brand(:source_url) - - def data_path(suffix) do - Path.join(data_path(), suffix) - end - - def data_path do - Application.get_env(:nola, :data_path) - end - - def version do - Application.spec(:nola)[:vsn] - end - -end |