I have an instance of hubot running on heroku. I don't need any of the default behaviour (for example help command). Instead I'd like to choose my own commands and just have users input text with commands. In this case I just want to run pb with every user input.
So if a user inputs hello I'd like humbot to run pb hello.
The code I'm trying based on mshish suggestion is in /scripts/example.cofee
module.exports = (robot) ->
robot.hear /.*/, (msg) ->
pb msg
Sounds like you want to hear "anything". Use Hubot's hear and respond feature (hear not respond will do what you want) and use a regex that matches everything,
.*To turn off default scripts, remove them using
npm uninstall --save PACKAGE_NAMEfrom the root of the repo. PACKAGE_NAME should match the script packages you want to remove frompackage.json. You may also need to manually remove the script fromexternal-scripts.jsonandhubot-scripts.json.