             [clojurewerkz.quartzite.conversion :as conversion]
             [taoensso.timbre :as log]
             [byte-streams])
+  (:import java.util.Date)
   (:gen-class))
+
+(def config (atom {}))
 
 (defn connect-url [token]
   (str "https://slack.com/api/rtm.start?token=" token))

        (schedule-removed scheduler db-conn db-before db-after)
        (schedule-updates scheduler db-conn db-before db-after)))))

(defn -main [db-uri]
  (log/merge-config! {:level :info
                      :output-fn (partial log/default-output-fn {:stacktrace-fonts {}})})
  (log/info "Starting the slackbot with" db-uri)
  (let [scheduler (scheduler/start (scheduler/initialize))
        db-conn (d/connect db-uri)]
    (init-start-jobs scheduler db-conn)

  ;; db stuff

  (def db-uri "datomic:free://localhost:4334/teamweek")
  (def es-uri "http://localhost:9200/")

  (-main db-uri es-uri)


  (d/delete-database db-uri)
