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

Better command handler for root command + subcommand #50

Open
Tracked by #87
juni-b-queer opened this issue May 17, 2024 · 0 comments
Open
Tracked by #87

Better command handler for root command + subcommand #50

juni-b-queer opened this issue May 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@juni-b-queer
Copy link
Owner

I want to be able to easily make a bot like !jazbot that has the root command !jazbot and then multiple subcommands.
An example would be
!reminderbot then have commands like

  • remindme {time string} (set reminder)
  • list (list reminders for your account)
  • cancel (a reply to a reminder that will be canceled)
  • repeat {additive time} (repeats a reminder)

I'd like to be able to do something like this (pseudo code)

CommandHandler.make("rootCommand")
   .setCommand("subCommand", [additional Validators], [actions for command])
   .setCommand("subcommand2" [validators], [actions])
@juni-b-queer juni-b-queer added the enhancement New feature or request label May 17, 2024
@juni-b-queer juni-b-queer added this to the Release 2.0.0 milestone May 17, 2024
@juni-b-queer juni-b-queer added the next release Something that should be included in the next release label May 20, 2024
@juni-b-queer juni-b-queer mentioned this issue May 22, 2024
13 tasks
@juni-b-queer juni-b-queer mentioned this issue Dec 10, 2024
4 tasks
@juni-b-queer juni-b-queer removed this from the Release 2.0.0 milestone Dec 10, 2024
@juni-b-queer juni-b-queer removed the next release Something that should be included in the next release label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant