Amazebot / bbot

An adaptable conversation engine for building bespoke bots.
MIT License
55 stars 2 forks source link

Should a matching listener prevent further matching by default #66

Closed timkinnane closed 6 years ago

timkinnane commented 6 years ago

Need feedback to asses if listeners should require done to be set to prevent further processing, or if that should be the default. Currently, many listeners could fire on the same input, which is intentional because not all listeners respond to an input, some might perform a callback which is required even if other listeners fire. It might be preferable though, to make the opposite the default and require some attribute on the listener to say it should match even if others have.

see https://github.com/Amazebot/bbot/blob/master/src/lib/thought-process.ts