             [taoensso.timbre :as log]
             [byte-streams])
   (:gen-class))
-
-;; for testing
-(defonce slack-token (or (System/getenv "SLACK_TOKEN")
-                         (throw (ex-info "No SLACK_TOKEN provided" {}))) )
 
 (defn connect-url [token]
   (str "https://slack.com/api/rtm.start?token=" token))

                :answer/ts (:ts answer)
                :question/_answers (:question-id answer)})]
      @(d/transact db-conn tx)
      (log/infof "Successfully Submitted % answers to %s for %s" (count answers) domain user))
    (catch Exception e
      (log/errorf e "Failed to submit answers %s for domain %s and user %s"
                  (pr-str answers) domain user)


  (def db-conn (d/connect db-uri))

  (d/q '[:find ?answer ;(pull ?answer [:answer/author :answer/text :answer/ts])
         :where
         [?answer :answer/text]]
       (d/db db-conn))


  @(d/transact db-conn (read-string (slurp "../webapp/resources/schema.edn")))

  (future (listen-for-team-updates nil db-conn))

