Sidehistorik
Hubot runs under nodejs, for linux do install: (http://how-to.linuxcareer.com/how-to-install-and-use-hubot-robot-on-ubuntu-machine)
Kodeblok |
---|
sudo apt-get update sudo apt-get install build-essential sudo apt-get install libssl-dev redis-server libexpat1-dev sudo apt-get install nodejs sudo apt-get install npm sudo apt-get install git-core |
Tip | ||
---|---|---|
On older OS'es (on Ubunto Ubuntu 10.04 LTS, newest version is v0.6.x - so compile nodejs Youself:
|
...
Kodeblok |
---|
cd opt/hal9000 npm install --save hubot-hipchat npm http GET http://registry.npmjs.org/hubot-hipchat npm http 200 http://registry.npmjs.org/hubot-hipchat npm http GET http://registry.npmjs.org/hubot-hipchat/-/hubot-hipchat-2.7.5.tgz npm http 200 http://registry.npmjs.org/hubot-hipchat/-/hubot-hipchat-2.7.5.tgz |
Tip |
---|
Hubot sending HTML - https://github.com/github/hubot-scripts/blob/master/src/scripts/hipchat-api.coffee |
You can get SSL problems "CERT_UNTRUSTED" with old node versions - see https://github.com/coolaj86/node-ssl-root-cas
A "dirty" hack is to place this in the hubot file:
Advarsel |
---|
# SSL Problem |
Links
http://12devsofxmas.co.uk/2014/01/day-11-creating-your-own-franken-butler-with-hubot/
http://stackoverflow.com/questions/24635934/clear-timers-on-hubot-reload-all-scripts
https://github.com/github/hubot/blob/master/docs/scripting.md