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

$ 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

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
* 网址:https://h4ck.org.cn/
* 个性:https://oba.by/
* 本文标题: 《hubot install. hubot 机器人安裝》
* 本文链接:https://h4ck.org.cn/2013/03/5027
* 短链接:https://oba.by/?p=5027
* 转载文章请标明文章来源,原文标题以及原文链接。请遵从 《署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5 CN) 》许可协议。


猜你喜欢:

2 comments

  1. 公主 Queen 
    Opera 12 Opera 12 Mac OS X 10.8 Mac OS X 10.8 cn福建省厦门市 电信

    安装npm之后可以直接使用npm install hubot -g进行全局安装。

回复 音乐人生网赚 取消回复

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