Slack Hubot

簡單記錄一下,Slack Hubot 試驗過程:

(https://github.com/slackhq/hubot-slack)[安裝]

指令最好使用 sudo 以防有資料夾權限不夠操作的情況

(http://stackoverflow.com/questions/30657596/remove-heroku-setting-from-hubotmissing)[ HUBOT_HEROKU_KEEPALIVE_URL 問題排除]
碰到 ERROR hubot-heroku-alive included, but missing HUBOT_HEROKU_KEEPALIVE_URL. 問題請用上列方式處理。

接著專案的 scripts/example.coffee 有很多可玩的例子,例如:

robot.hear /badger/i, (res) ->
    res.send "Badgers? BADGERS? WE DON'T NEED NO STINKIN BADGERS"

只要對機器人說 "badger", 機器人便會自動回覆 "Badgers? BADGERS? WE DON'T NEED NO STINKIN BADGERS"

比較進階一點的介紹:

(http://huli.logdown.com/posts/417258-hubot-a-bot-framework)[[心得] Hubot, 一套 bot framework]

可以把你的 Hubot 丟到Heruko,請參考此篇

(http://code.kpman.cc/2016/04/18/%E5%9C%A8-slack-%E5%BB%BA%E7%AB%8B-hubot/#六、將本地端 server 放上 heroku)[將本地端 server 放上 heroku]

其他Hubot可以串接的app

Comments

comments powered by Disqus