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

Command reqs #12

Merged
merged 6 commits into from
May 19, 2018
Merged

Command reqs #12

merged 6 commits into from
May 19, 2018

Conversation

eritbh
Copy link
Owner

@eritbh eritbh commented Mar 17, 2018

fixes #1, fixes #4

todo:

  • make the API work
    • owner checks (1fa6024)
    • things other than that (?)
    • arbitrary functions instead of objects with booleans (5f585b7)
  • move current instances of permission checks in my commands to use it
  • document the API
    • jsdoc
    • documentation site

TODO: documentation, making the interface for creating commands more logical
@eritbh eritbh added enhancement something doesn't happen that should changes: api modifies behavior of the public API version: minor semver-minor, involves feature addition labels Mar 17, 2018
@eritbh eritbh self-assigned this Mar 17, 2018
@eritbh eritbh modified the milestones: 1.0, 0.6.0 Mar 18, 2018
@eritbh eritbh changed the base branch from master to dev May 19, 2018 23:36
@eritbh
Copy link
Owner Author

eritbh commented May 19, 2018

Implementing this the way I am because determining whether or not you can run the command should be different than actually running the command. Specifically, this is useful for custom help commands like the one the live bot uses - it doesn't show you commands that you can't use when you request a list of commands.

Gonna call this good enough in its current state for 0.6.0, further patch versions can implement other options like passing in a map of permissions or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: api modifies behavior of the public API enhancement something doesn't happen that should version: minor semver-minor, involves feature addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant