@eslachance I made this https://github.com/dpsutton/slackmusic based on this https://github.com/verma/clj-slackbot
It is basically just a websockets spinning and listening. You make your own handlers and define what you care about and it does the rest
There's tons of room for improvement and making it cleaner
Ooooh that is precisely what I was looking for ^_^
Verma's version allows for websockets or webserver
Mine is only websockets and has a keep alive ping which is necessary
I shall go from both. I needed to understand sockets and events in the context of clojure.
no real sockets you need to understand
it opens up and listens, and when something comes in, dumps it on the input channel
and you dump your output on the output channel
it doesn't use events, just a simple go-loop listening on 1) input from channel, and if you can-handle?
, it dumps it on the input channel to your mechanism and 2) output from your channel of what you do with it
I kinda sorta want to make my own library for Discord so I need to understand how to implement a few things.