hubot install. hubot 机器人安裝

hubot

 

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.安装nodejsnpm (node v0.6.3+版本以后已经集成npm)

2.安装redis数据库
http://redis.googlecode.com 下载redis

1
2
3
$ tar xzf redis-x.x.x.x.tar.gz 解压文件
$ cd redis-2.4.1
$ make

启动服务: $ src/redis-server

ps: 如果要redis开机启动 ( 可选 )

1
2
3
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

QQ20130319-2

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 就成功了

QQ20130319-3

参考文章:

https://github.com/github/hubot

http://www.douban.com/note/180322952/

http://blog.caesarchi.com/2011/10/hubot-install-hubot.html

原创文章,转载请注明: 转载自 obaby@mars

本文标题: 《hubot install. hubot 机器人安裝》

本文链接地址: http://h4ck.org.cn/2013/03/hubot-install/

You may also like

2条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注