Make it usable from babashka
This commit is contained in:
parent
b17f556758
commit
a0a1a42351
7 changed files with 6 additions and 29 deletions
|
|
@ -3,8 +3,7 @@
|
|||
(:require [clojure.string :as str]
|
||||
[clojure.tools.cli :refer [parse-opts]]
|
||||
[taoensso.timbre :as log]
|
||||
[clj-http.client :as http]
|
||||
[dotenv.core :refer [env]]
|
||||
[org.httpkit.client :as http]
|
||||
[heyarne.frantisek-kafka.markov :as markov])
|
||||
(:gen-class))
|
||||
|
||||
|
|
@ -38,6 +37,10 @@
|
|||
|
||||
;; interacting with the API
|
||||
|
||||
(def env
|
||||
{:mastodon-instance (System/getenv "MASTODON_INSTANCE")
|
||||
:access-token (System/getenv "ACCESS_TOKEN")})
|
||||
|
||||
(defn environment-setup? []
|
||||
(and (:mastodon-instance env) (:access-token env)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue