BeepBoopHQ/witbot

Add a fallback method if there are no matching hears methods

robmorgan opened this issue · 4 comments

Hi,

Great job on the library, I've been using it to write a few bots.

One thing I'd like to add though is the ability to specify a fallback/catch all method.

Often I'd like to reply with:

Sorry, I do not understand etc

Looking through the source, its not currently possibly right? or is there a smarter way to do it?

Great point. No I don't think there's good way to do this currently.

Maybe something like this if no known intents are matched: witbot.otherwise(function(){})

@mbrevoort exactly!

@robmorgan I just added otherwise and published version 1.1.0. Thanks!

@mbrevoort awesome, I'll try it out tomorrow!