Make it usable from babashka

This commit is contained in:
arne 2024-01-06 10:42:11 +01:00
commit a0a1a42351
7 changed files with 6 additions and 29 deletions

View file

@ -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)))