publiclab / plotsbot

A bot for Public Lab
GNU General Public License v3.0
17 stars 28 forks source link

command aliasing -- "plotsbot fto" / "plotsbot, first timers issues?" #75

Open jywarren opened 7 years ago

jywarren commented 7 years ago

I'd like to propose a way we could make different triggers for behaviors to cover various ways of asking questions. Even in different languages! So different trigger words could cause the same behavior to run.

This could be done either inside a behavior, by making a list of triggers, or by making a "wrapper" behavior that then just runs a different behavior.

ryzokuken commented 7 years ago

@jywarren Perhaps we could give an array of strings instead of a single one for the message trigger keyword?

jywarren commented 7 years ago

yeah that sounds good. Is it documented anywhere that it searches for the string through whole messages to make matches? Sorry, can you point me at the documentation for trigger keywords? Thanks!

On Wed, Sep 27, 2017 at 12:00 PM, Ujjwal Sharma notifications@github.com wrote:

@jywarren https://github.com/jywarren Perhaps we could give an array of strings instead of a single one for the message trigger keyword?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plotsbot/issues/75#issuecomment-332570329, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ5mXW2KVQEgYhhZDvK1SSAS0ixTgks5smnEAgaJpZM4Pl5qc .

ryzokuken commented 7 years ago

@jywarren take a look at pt. 3 in https://github.com/publiclab/plotsbot#behavior-model