我想将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