introduction to hubot
TRANSCRIPT
![Page 1: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/1.jpg)
Introduction toHubot
@cppgohan
![Page 2: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/2.jpg)
Node.js == server-side JavaScript environment that uses an asynchronous event-driven modeCoffeeScript == a little language that compiles into JavaScriptRedis == Key-Value data store
Made by ! Power by Node.js + CoffeeScript!
![Page 3: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/3.jpg)
Hutbot @GitHub can do:
• unlock the door to our office• print out a list of the people currently in the office based on their
wifi presence• find an apartment in the area to rent• deploy GitHub• give you a quote from any movie or TV show• tell you the build status of any git branch• SMS any GitHubber from Campfire• embed a seven day weather forecast
http://zachholman.com/posts/why-github-hacks-on-side-projects/
![Page 4: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/4.jpg)
2 Parts for customize:• adapter
• shell(default)• campfire• irc• ...
• hubot-script• google-images• maps• youtube• 9gag• play
![Page 5: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/5.jpg)
Come on, a script example!
https://gist.github.com/1909063
![Page 6: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/6.jpg)
Result!
![Page 7: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/7.jpg)
Come once more!
https://gist.github.com/1909392
![Page 8: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/8.jpg)
Result again, use irc:
![Page 9: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/9.jpg)
Result again, use campfire:
https://baozishan.campfirenow.com/room/482063/transcript/2012/02/26
![Page 10: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/10.jpg)
• http://hubot.github.com/• http://nodejs.org• http://coffeescript.org/• https://github.com/github/hubot-scripts
reference pages
![Page 11: Introduction to hubot](https://reader033.vdocument.in/reader033/viewer/2022052410/554ebbb4b4c905064d8b45bd/html5/thumbnails/11.jpg)
THE END! BUT... 折騰不止!期待大家的精彩分享, 热烈讨论, 欢迎交流. I’m @cppgohan.
blog.baozishan.in