add mastodon
This commit is contained in:
parent
e1d0de50c6
commit
6249124c17
3 changed files with 54 additions and 19 deletions
|
|
@ -6,7 +6,9 @@
|
|||
{:pocket-base-pw "POCKET_BASE_PW"
|
||||
:pocket-base-host "POCKET_BASE_HOST"
|
||||
:blue-sky-api-key "BLUE_SKY_API_KEY"
|
||||
:minstral-api-key "MISTRAL_API_KEY"})
|
||||
:minstral-api-key "MISTRAL_API_KEY"
|
||||
:mastodon-host "MASTODON_BASE_URL"
|
||||
:mastodon-account-id "MASTODON_ACCOUNT_ID"})
|
||||
|
||||
(defn- load-config []
|
||||
(tel/log! :info "Config is being loaded")
|
||||
|
|
@ -18,7 +20,7 @@
|
|||
|
||||
(def config (atom (load-config)))
|
||||
|
||||
(defn reload-config []
|
||||
(defn reload []
|
||||
(reset! config (load-config)))
|
||||
|
||||
(comment
|
||||
|
|
@ -27,4 +29,4 @@
|
|||
@config
|
||||
|
||||
;; Reload the config at runtime
|
||||
(reload-config))
|
||||
(reload))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue