                                                                                      "$referrer" ""
                                                                                      "$referring_domain" ""}
                                                                        "compress" false}}))
-    
+
     (while (:keep-alive (get @bots bot)) (Thread/sleep 1000))
     (try
       (connect params)
-      (catch Exception e 
+      (catch Exception e
         (do
           (log-function "Caught exception: " (.getMessage e))
           (Thread/sleep 60000)
           (try
             (connect params)
-            (catch Exception e 
+            (catch Exception e
               (do
                 (log-function "Caught exception: " (.getMessage e))
                 (log-function "Abandoning the attempts to reconnect bot " bot)

                              {:name filename :part_name "file" :content (io/file filename)}]
                  :headers {:authorization (:token (:params (get @bots bot)))}}))))

(defn post-message-with-mention 
  ([channel-id message user-id]
    (post-message-with-mention 0 channel-id message user-id))
  ([bot channel-id message user-id]
    (post-message bot channel-id (str "<@" user-id ">" message))))

(defn answer-command 
  ([data command answer]
    (answer-command 0 data command answer))
  ([bot data command answer]

        previous-activity (:activity (get @bots bot))
        previous-activity (if (nil? previous-activity) 0 previous-activity)
        seconds-since-previous-activity (- now previous-activity)]
    (if
      (> 5 seconds-since-previous-activity)
      false
      (do
        (swap! bots update-in [bot] assoc :activity now)
        true))))

(defn post-message
  ([channel-id message]
    (post-message 0 channel-id message))
  ([bot channel-id message]
