Releases: emiln/slacker
Bug fix
Release 1.5.0
This release contains one new function: await!
. The docstring states that is
Blocks the thread, awaiting the occurrence of the given topic on the event channel. This is very handy for awaiting
:slacker.client/bot-disconnected
in the main function, which essentially blocks until the bot dies.
Its intention is to be used in the main function of bot authors to provide a convenient way to block the JVM from exiting as long as the bot is connected. A main function could then look as follows:
(defn -main
[& args]
(emit! :slacker.client/connect-bot "MY_API_TOKEN")
(await! :slacker.client/bot-disconnected))
Release 1.4.0
This is labelled a major release due to the rework of the handle
function. It might be called a breaking change, but I would be surprised if anyone has difficulty with it.
Release 1.3.1
This is a minor bug fix. emit!
now correctly returns nil, which should help indicate that its return value is not to be interacted with. Use emit-with-feedback!
if you rely on feedback from handlers.
Release 1.3.0
This feature release introduced the concept of awaiting the return values from handlers after emitting. It is now possible to set up a handler like
(handle :greet-me
(fn [name] (str "Hello there, " name "!")))
and await its greeting like so:
(let [feedback (emit! :greet-me "Emil")]
(println (<!! feedback)))
Release 1.2.0
Release 1.2.0
This is another simple and small release adding logging. See the README for details.
Release 1.1.0
This small release features:
Slacker 1.0.0
Slacker is now functional and able to ease the creation of simple or even intermediate bots. See the README for much more information.