rocketchat-rest-client clojure library
- Add this library to your project (leinigen)
[missile "0.1.1"]
You can choose to Initialize the missile
library with: 1) a file.edn or 2) user-paramter.
-
from a file:
(missile.config/set-config-from-file "path-config-file.edn")
have a look at here for templatefile -
from an input parameter:
(missile.config/set-config-from-input {:username "foo2" :server-url "myserver" :token "foo"})
(missile.chat/sendMessage "fadfjkj3" "autogenerated" )
sendMessage [channel-id message]
send a message to a channel given its id
https://rocket.chat/docs/developer-guides/rest-api/channels/
-
(missile.channels/info "my-channel-name")
"Retrieves the information about a channel" -
(missile.channels/list!)
Get all channel objects from server-name. Return channels json properties, name, id etc. (see upstream doc)
- get channel id by name:
(def channel-id (missile.channels/get-channel-id "rock"))
- minimalism
- open to community but driven by quality
- patience and listen to contributors
- maintainers are free to join and go
-
A reminder bot for Rocketchat https://github.com/MalloZup/fullrocketmetal
-
Event-driven, async notification for Jenkins: https://github.com/MalloZup/saint-build
create a .missile.edn
Let the REPL GUIDE YOU