我想將http-post-say.coffee
腳本添加到Heroku上託管的hubot應用程序。Add Hub支持Hubot
該文檔指出,一旦添加了該腳本,它將創建'/hubot/say'
路由,該路由接受以下格式的發佈請求。
curl -X POST http://localhost:8080/hubot/say -d message=lala -d room='#dev'
我加入了腳本和修改網址,但我收到以下錯誤: Cannot POST /hubot/say
我的下一步是添加一些依賴。我注意到使用robot.router.post
的其他應用程序具有這些依賴關係。
"htmlparser": "1.7.6", "connect": "2.3.4", "connect_router": "1.8.6", "scoped-http-client": "0.9.7"
我部署了我的變化,但我仍然收到Cannot POST /hubot/say
,當我嘗試打這條路線。
有什麼我失蹤?我對node.js或hubot不是很熟悉。
你在添加文件夾? 'scripts'? – Outsider 2013-05-15 04:55:02
日誌說什麼? – maletor 2013-06-19 21:14:56
解決了?我試過你的腳本,它工作正常http:// localhost:8080/hubot/say?message = lala&room =#dev – 2014-03-07 01:13:48