Catch all response sc.15.4.16#109
Catch all response sc.15.4.16#109SimonAropama wants to merge 2 commits intoStackStorm:masterfrom TheUniproGroup:CatchAllResponse_SC.15.4.16
Conversation
|
Hi! Thank you for the submission. I can potentially see a problem with it: since A better way to design it would be this: instead of making hubot-stackstorm fire on catchall, you can get a list of regexes that's built when StackStorm commands are loaded, and only register them as commands. That would involve some work, but this way an external catch-all script will work for sure. |
|
Ok, presumably during our testing it didn't fire on other commands (e.g. !help etc) as the hubot-stackstorm plugin is loaded last. Is the suggestion regarding regexes and only registering them something to be done in this script? |
|
Yes, you could try to replace this catch-all (that makes hubot-stackstorm fire on every command addressed to Hubot): https://github.com/StackStorm/hubot-stackstorm/blob/master/scripts/stackstorm.js#L297 |
|
bump? 👍 |
|
|
At present there is no default message when a command is not recognised so it fails silently. It would be more user friendly to send a simple message to inform the user that the command was not recognised so that they can check and try again.
A CatchAll can be added via an additional Coffee script but I found that once hubot-stackstorm was installed it only worked with general messages and not those directed to Hubot.