diff options
Diffstat (limited to 'lib/lsg')
-rw-r--r-- | lib/lsg/lsg.ex | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/lsg/lsg.ex b/lib/lsg/lsg.ex index 25f127f..b5da5e0 100644 --- a/lib/lsg/lsg.ex +++ b/lib/lsg/lsg.ex @@ -1,8 +1,19 @@ defmodule LSG do - def source_url() do - "https://git.random.sh/ircbot.git" - end + @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(:lsg) + def env(key, default \\ nil), do: Application.get_env(:lsg, 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) |