Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrmcc3/boot-slack
A boot task to send a message to slack (via incoming webhook)
https://github.com/mrmcc3/boot-slack
Last synced: about 1 month ago
JSON representation
A boot task to send a message to slack (via incoming webhook)
- Host: GitHub
- URL: https://github.com/mrmcc3/boot-slack
- Owner: mrmcc3
- Created: 2015-07-28T12:48:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-05T00:28:57.000Z (over 9 years ago)
- Last Synced: 2024-12-13T21:11:42.100Z (about 1 month ago)
- Language: Clojure
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# boot-slack
Boot task for sending a message to slack (via incoming webhook).
![Clojars Project](http://clojars.org/mrmcc3/boot-slack/latest-version.svg)
### Usage
in build.boot
```clj
(set-env! :dependencies '[[mrmcc3/boot-slack "0.1.0-SNAPSHOT"]])
(require '[mrmcc3.boot-slack :refer [slack]])
```then set the webhook url
```clj
(task-options! slack {:url "https://hooks.slack.com/services/.........."})
```try it from the command line
```bash
$ boot slack -m "Hello World"
```You can set the bot username, icon emoji and the channel/user to send to
```clj
[u url URL str "slack webhook url"
b bot BOT str "the bot username"
m msg MSG str "message to send"
i icon ICON str "icon emoji (:shipit:)"
c ch CHAN str "channel (#channel, @username)"]
```### LICENSE
Copyright © 2015 Michael McClintock
Distributed under the Eclipse Public License, the same as Clojure.