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

Query Parameters #45

Open
howardt12345 opened this issue Dec 20, 2022 · 0 comments
Open

Query Parameters #45

howardt12345 opened this issue Dec 20, 2022 · 0 comments
Assignees
Labels
discord-bot Issues relating to the discord bot enhancement New feature or request

Comments

@howardt12345
Copy link
Owner

There should be more flexibility in the parameters of all of the bot commands

Task: Create a function to parse a string and interpret the required parameters from the string.

Example: For listSongs, $listSongs difficulty=Expert tag=live should be a valid input.

  • The function should be able to handle parsing parameters for all types of allowed parameters
  • The function should return only the parameters required for a certain bot command (i.e. tagScore is limited to id and tag)
  • It should also allow aliases for a parameter (i.e. difficulty can be parsed with d).
  • By default, if the parameter name isn't provided, there should be a default order.
  • The specified parameters should have the properties listed in commandParams, to allow for better management of parameters in the codebase

Each parameter should be in the format: [name or alias]=[value or condition]

@howardt12345 howardt12345 added discord-bot Issues relating to the discord bot enhancement New feature or request labels Dec 20, 2022
@howardt12345 howardt12345 self-assigned this Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discord-bot Issues relating to the discord bot enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant