diff options
author | Jordan Bracco <href@random.sh> | 2022-12-17 13:01:29 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:41 +0100 |
commit | 4b81c028885a53806dd5592f89b845e1f764c41e (patch) | |
tree | 04ec2ea4b7502a76b82d9314d373c266e506926d /lib/lsg | |
parent | feat(couch): convert slashes to %2F in paths, allowing to use database or doc... (diff) |
Rename to Nola, pt. 1. Refs T77
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) |