Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override the commands #128

Open
matsotaa opened this issue Oct 12, 2023 · 0 comments
Open

Override the commands #128

matsotaa opened this issue Oct 12, 2023 · 0 comments

Comments

@matsotaa
Copy link

matsotaa commented Oct 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant