CactusDev / CactusBot

An open source, community-written service-agnostic chat bot
MIT License
30 stars 6 forks source link

Configurable Magic™ Command Permission Levels #175

Open Alkali-Metal opened 7 years ago

Alkali-Metal commented 7 years ago

Have it so the built-in commands can have their user runnable level configured. So commands like !command list can be changed from mod only to user. I would think that this could just be attached into the !config command something similar to...

at least, this is how I would think it would work. With the - being necessary for subcommands like !command list, !quote add, etc.


[Alkali] !config permission command-list User
[CactusBotAlpha] "!command list" permission level updated to User
[Alkali] !config permission social Owner
[CactusBotAlpha] "!social" permission level updated to Owner
2Cubed commented 7 years ago

This is a good idea.

We talked a while ago about wanting to put something in the API to signify that a command is existent, but magic (currently, /user/:token/command/quote 404's). If we could include a changeable role key in that response, it would be relatively simple to deal with this issue. cc: @RPiAwesomeness