Pro Yearly is on sale from $80 to $50! »

Intergalactic Javascript Robots from Outer Space

Intergalactic Javascript Robots from Outer Space

6804f1775cb4babfcc3851298566fbce?s=128

Vicent Martí

July 06, 2012
Tweet

Transcript

  1. None
  2. None
  3. None
  4. None
  5. None
  6. None
  7. None
  8. None
  9. None
  10. None
  11. None
  12. None
  13. None
  14. None
  15. None
  16. None
  17. None
  18. None
  19. a hubot plugin is just a coffeescript file

  20. the plugin is initialized in the module’s main export a

    hubot plugin is just a coffeescript file
  21. the plugin is initialized in the module’s main export the

    ‘respond’ method takes a regex and a callback a hubot plugin is just a coffeescript file
  22. the plugin is initialized in the module’s main export the

    ‘respond’ method takes a regex and a callback the ‘send’ method in the message can be used to answer the query a hubot plugin is just a coffeescript file
  23. None
  24. None
  25. None
  26. None
  27. the ‘http’ method in ‘msg’ starts composing an http request

  28. the ‘http’ method in ‘msg’ starts composing an http request

    chain it with ‘query’ to set the query parameters
  29. the ‘http’ method in ‘msg’ starts composing an http request

    chain it with ‘query’ to set the query parameters ...or with ‘header’ to set the headers for the request
  30. the ‘http’ method in ‘msg’ starts composing an http request

    chain it with ‘query’ to set the query parameters ...or with ‘header’ to set the headers for the request perform the request with ‘get’, ‘post’, ‘put’, ‘patch’ or ‘delete’!
  31. None
  32. None
  33. None
  34. None
  35. None
  36. None
  37. None
  38. None
  39. None
  40. None
  41. None
  42. None
  43. None
  44. None
  45. None
  46. None
  47. None
  48. look! a copy of rms’ famous interjection speech!

  49. look! a copy of rms’ famous interjection speech! use ‘hear’

    instead of ‘respond’ to listen to all incoming chat messages
  50. look! a copy of rms’ famous interjection speech! use ‘hear’

    instead of ‘respond’ to listen to all incoming chat messages ...and then reply with the speech if somebody says “linux”
  51. None
  52. None
  53. None
  54. None
  55. None