Skip to content

Override the commands #128

@matsotaa

Description

@matsotaa

Add the opportunity to override commands could be very useful and will make your lib more flexible. I might missed something, but I'm no seeing any opportunity to stop some botCommands to be executed. F.E.: I need to let user go forward by bot, but command /back would be always the same in stack of Paths the one were I added it first. It would be great to have opportunity to let user go back at every flow within the same command. The overriding options would be great. I can't even delete some command that.

Anyway making var paths = [Path]() public will help to devs to make their own customisations. Please consider that suggestion
Also make name public in Command, or make it Equatable would be great as well, using fetchFrom seems odd a little bit

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