hubot 機器人安裝
发布于 12 年前 作者 jonathan 6071 次浏览 最后一次编辑是 8 年前

hubot install. hubot 機器人安裝

source: https://github.com/blog/968-say-hello-to-hubot

hubot 機器人,可以自己寫script 代替人工作業,也可以用來做代替工人智慧產物。目前這個專案已經使用Coffee script 和node.js重新編寫,並且Open source於github,詳細內容就不多介紹 ,本篇主要教學如何安裝hubot 。

查了很久,對於這套專案的安裝說明實在很少,做個簡單教學紀錄。

安裝前提,以下幾個項目需要事先安裝 node.JS npm redis git coffee-script 安裝步驟

git clone https://github.com/github/hubot.git cd hubot bin/hubot

注意: 中間可能遇到某些module 尚未安裝,請使用npm install 安裝其他module執行指令

注意: 執行hubot 之前,請先切換到hubot 目錄下 執行hubot 之前,請先啟動redis server -> redis-server

常用指令

hubot help

範例指令

搜尋圖片

hubot image me <query>

搜尋youtube

hubot youtube me <query>

加載script

指令就是將整個script 專案下載之後,將src/scripts 的資料整個複製到hubot 裡面執行。

git clone https://github.com/github/hubot-scripts cd ~/hubot cp -r ~/hubot-scripts/src/scripts ~/hubot/src/scripts

參考網址

http://joeloughton.com/blog/uncategorized/installing-hubot-on-mac-os-x-10-7/ https://github.com/github/hubot-scripts

1 回复

除了命令行,如果自己写的项目,比如express中,怎么用api的方式触发任务?

回到顶部