gort icon indicating copy to clipboard operation
gort copied to clipboard

Add "trigger" support to respond to non-command text

Open clockworksoul opened this issue 2 years ago • 2 comments

Currently Gort only responds to explicit commands, formatted like structured commands. There should be some kind of ability to respond to non-command text, sort of like Slack "triggers" (but not like Cog "triggers", which are very different).

Triggers would be configured with a pattern to match and a command, so when Gort sees text matching the defined pattern, it executes the command.

  • Open question: How will it behave wrt to trigger text + command inputs?

    • Should input be passed through to the command parser? Maybe set as an envvar?
  • What if a command also matches a trigger? Which takes precedence?

    • Execute triggers only if there’s no matching command?
    • Execute trigger and stop processing (so command never executes)?
    • Either of the above/configurable per trigger?
  • What about timed triggers (maybe use cron definitions)?

clockworksoul avatar Oct 13 '21 14:10 clockworksoul

@clockworksoul Given the above commit can this be closed? Or was there follow up work needed?

theothertomelliott avatar Jun 04 '22 22:06 theothertomelliott

As discussed "in-person" this will need documenting.

theothertomelliott avatar Jun 06 '22 18:06 theothertomelliott