Fork me on GitHub
#clojure-uk
<
2016-09-28
>
korny16:09:19

anyone played with clojure slack bots? There seem to be a few slack libraries out there, and a few bots, but the bots seem to be a bit alpha-quality (and don’t use the libraries!)

korny16:09:42

… and the libraries don’t give examples. I’m lazy, dammit, I just want to steal code that lets me write a bot quickly! 🙂

glenjamin16:09:14

i’ve done them with node in the past using the official slack npm package - dunno if the JVM one is any good, but CLJS might work fairly quickly

glenjamin16:09:41

although consuming npm modules for CLJS use is not as easy as it should be

minimal16:09:21

I saw a london clojure talk on a pedestal based slack bot, looked interesting. I started with a plan to make one using that ring lambda lib, got as far as hello worlding an endpoint I think

minimal16:09:14

The aws lambda routing was quite fiddly since I hadn’t done it before

oliy17:09:14

@minimal that was me, and ^ that is the app

oliy17:09:56

@korny you can either look at that one for a web hook based approach (request/response behaviour) or there is a channel based approach where you listen to every message

oliy17:09:11

That was the initial spike using the channel approach but the request/response idiom was better

oliy17:09:43

I think also that the clojurians slack logging project probably uses the channel approach

oliy17:09:49

I would imagine anyway

korny17:09:51

Nice... But possibly a tad over complex for my needs. I should be able to steal some ideas from it though.