Hubot
This is a version of GitHub’s Campfire bot, hubot. He’s pretty cool.
You’ll probably never have to hack on this repo directly.
Instead this repo provides a library that’s distributed by npm
that you simply require in your project. Follow the instructions below and get your own hubot ready to deploy.
1.安装nodejs和npm (node v0.6.3+版本以后已经集成npm)
2.安装redis数据库
http://redis.googlecode.com 下载redis
$ tar xzf redis-x.x.x.x.tar.gz 解压文件
$ cd redis-2.4.1
$ make
启动服务: $ src/redis-server
ps: 如果要redis开机启动 ( 可选 )
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/redis/2.2.12/io.redis.redis-server.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
3..git clone https://github.com/github/hubot.git
cd hubot
4..进入hubot 目录,用npm 安装相关依赖
npm install
5.export PATH=”node_modules/.bin:$PATH”
./bin/hubot 进入到hobot提示符下
Hubot>
输入 hubot pug me ,如果返回一个包含图片url 的json 就成功了
参考文章:
https://github.com/github/hubot
http://www.douban.com/note/180322952/
http://blog.caesarchi.com/2011/10/hubot-install-hubot.html
2 comments
安装npm之后可以直接使用npm install hubot -g进行全局安装。
高深的东东 呵呵