ins.each do |i| # We use multipart messages to make subscriptions easier. header = i.recv json = i.recv puts "Got Header #{header}" puts "Got json #{json}" end end
“privmsg”, “time”: 12312312312314, “target” : “channel or person”, “self” : “botnick”, “from” : “message originator”, “msg” : “Message spoken” } First part Second part
small and documented in the README https://github.com/hackinggibsons/clubot Ruby Bindings: https://github.com/sbryant/rb-clubot Node bindings exist. Need to be extracted. Sorry :(