Skip to content

Releases: emiln/slacker

Bug fix

14 Oct 20:51
Compare
Choose a tag to compare

As reported by @supermomonga in #44 there was a critical bug in receive-message. This has been fixed.

Release 1.5.0

03 Oct 21:50
Compare
Choose a tag to compare

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

20 Jul 19:37
Compare
Choose a tag to compare

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.

  • An annoying NullPointerException was fixed. (#38)
  • The Clojure version used by the library was bumped to 1.7. (#37)
  • The handle function had a make-over. (#33)

Release 1.3.1

12 Jun 17:13
Compare
Choose a tag to compare

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

11 Jun 22:38
Compare
Choose a tag to compare

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

20 May 18:59
Compare
Choose a tag to compare

Release 1.2.0

This is another simple and small release adding logging. See the README for details.

Release 1.1.0

15 May 18:57
Compare
Choose a tag to compare

Slacker 1.0.0

10 May 21:05
Compare
Choose a tag to compare

Slacker is now functional and able to ease the creation of simple or even intermediate bots. See the README for much more information.