Add Post support to Hubot
You have to understand that once you push your code on to heroku and make it run there, the URL no longer would be localhost
but the actual heroku URL related to the machine that was created when you did heroku create
.
The URL should look something like:
curl -X POST `http://herokumachinename/hubot/say -d message=lala -d room='#dev'`
To load a built-in script in Hubot, you must add it to hubot-scripts.json
, e.g.:
["http-post-say.coffee"]
(Since the script itself looks fine and it sounds like you've pushed to Heroku (restarting Hubot) it's the only thing I can think of that would explain it not working.)