Skip to content

feat: split up ctx.match #700

@KnorpelSenf

Description

@KnorpelSenf

It makes little sense to have a very ambiguous property ctx.match that narrows down its type in various different ways depending on the handler.

Instead, we should have different dedicated properties that get installed for each use case:

  • ctx.match for regex
  • ctx.payload for strings
  • ctx.args for command arguments
  • etc

The types for bot.hears etc need to be adjusted accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions