Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Next Level Chat Robots

Next Level Chat Robots

Gave this talk at NodeConf ONE-SHOT London, UK on July 19th, 2014
Follow me on Twitter: @CodeStars

Chat robots makes your live easier. Not only yours, it even makes your team collaborate better. Yeah, sure. That's a lot of brilliant claims, so lets check what this chat robots buzz is about. And how you and your team can profit from your own little, cool, chat robot!

Ole Michaelis

July 19, 2014
Tweet

More Decks by Ole Michaelis

Other Decks in Technology

Transcript

  1. CHAT ROBOTS next level tooling

  2. Ole Michaelis !" @ JIMDO // # @CODESTARS // ⚓️

    CODESTARS.EU // &' NESQUICK // ( SLIDR.IO
  3. WE ARE HANGING AROUND IN CHATROOMS SINCE EVER

  4. “If you have a sick day, you’re not going to

    miss everything if our communication is set up to be distributed." — Chris Wanstrath, github CEO
  5. CHATROOMS ARE awesome

  6. THE cloud MANIACS

  7. None
  8. None
  9. CONNECTING technologies

  10. HUBOT pronounced hew-bot

  11. BRING THE web TO YOUR chatroom

  12. SHARING IS caring

  13. PRESERVE history

  14. collaborate

  15. None
  16. EVERYTHING is possible ✌️

  17. None
  18. None
  19. THE POWER OF JAVASCRIPT

  20. GET YOUR BOT

  21. hearing and responding robot.hear /badger/i, (msg) -> msg.send "Badgers? BADGERS?

    WE DON'T NEED NO STINKIN BADGERS" robot.respond /open the (.*) doors/i, (msg) -> doorType = msg.match[1] if doorType is "pod bay" msg.reply "I'm afraid I can't let you do that." else msg.reply "Opening #{doorType} doors"
  22. http listener module.exports = (robot) -> robot.router.post '/hubot/chatsecrets/:room', (req, res)

    -> room = req.params.room data = JSON.parse req.body.payload secret = data.secret robot.messageRoom room, "I have a secret: #{secret}" res.send 'OK'
  23. event system module.exports = (robot) -> robot.router.post "/hubot/gh-commits", (req, res)

    -> robot.emit "commit", { user : {}, #hubot user object repo : 'https://github.com/github/hubot', hash : '2e1951c089bd865839328592ff673d2f08153643' }
  24. "The only limit is your imagination"

  25. None
  26. DEVELOPERS ❤️ TOOLS

  27. "We need more engineers and more productive engineers. We don’t

    need to send people on quests through the dark woods of our issue tracker [...]" — Garann Means
  28. HAVING A chat robot MEANS, YOUR LIFE JUST GETS EASIER!

  29. THANKS

  30. Tweet me @CodeStars

  31. ▸ https://github.com/blog/968-say-hello-to-hubot ▸ https://hubot.github.com/ ▸ https://github.com/dp-opensource/dooropener ▸ https://speakerdeck.com/jnewland/chatops-at-github ▸ https://github.com/github/hubot-scripts

    ▸ https://github.com/dp-opensource/dooropener ▸ https://the-pastry-box-project.net/garann-means/2014-june-16 ▸ https://github.com/github/hubot/blob/master/docs/scripting.md