                                           :manual_presence_change on-manual-presence-change
                                           :message on-message
                                           :hello on-hello))
-            (swap! hash-to-conn conj {(hash *conn*) *conn*})
+            (swap! hash-to-conn conj {(hash *config*) *conn*})
             (reset-users-from-conn)))
         configs))))
 


(def adapter :slack)

(defn chat-source [channel] {:adapter adapter :room channel :conn-hash (hash *conn*)})

(defn send-msg [msg]
  (slack-chat/post-message (slack-config) *target* msg

  (-> @*conn* :start :self))

(defn determine-config-from-chat-source-hash []
  (log/info "*conn* not set; find using" *chat-source*)
  (log/info (keys @hash-to-conn))
  (get @hash-to-conn (:conn-hash *chat-source*)))

(defn slack-config []
  ; if *config* is not bound, it's probably an API call, which will pass a :hash
