    :leave nil
    :set-room-broadcast nil
    :rooms rooms})
+
+;; formatting
+
+(defn unencode-message
+  "Slack gets fancy with URL detection, channel names, user mentions, as
+   described in https://api.slack.com/docs/formatting. This can break support
+   for things where YB is expecting a URL (e.g. configuring Jenkins), so strip
+   it for now. Replaces <X|Y> with Y."
+  [body]
+  (s/replace body #"\<(.+)\|(.+)\>" "$2"))
 
 ;; events
 

                (map (fn [cs] (users/add-user cs user-model)) chat-sources)))))
        users))))

;; start/stop

(defn stop []

(ns yetibot.core.adapters.slack
  (:require
    [gniazdo.core :as ws]
    [clojure.string :as s]
    [http.async.client :as c]
    [org.httpkit.client :as http]
    [yetibot.core.models.users :as users]
