Cog-Creators / Red-DiscordBot

A multi-function Discord bot
https://docs.discord.red
GNU General Public License v3.0
4.78k stars 2.31k forks source link

Limit usage of creating/deleting custom commands by role #17

Closed dong-brian closed 8 years ago

dong-brian commented 8 years ago

Custom commands are fun to play with, but I think it would be better if there was an option to limit the usage of the !addcom and !delcom commands to admins or another role.

Twentysix26 commented 8 years ago

It's undocumented (need to finish the wiki) but it's already a thing. In settings.json change the value of EDIT_CC_ADMIN_ONLY from false to true. This will restrict the use of the 3 commands to the admin role. There's a similar setting for trivia too.

dong-brian commented 8 years ago

Okay cool! When I get the chance I plan on forking this and making my own changes tailored to the server I run (if you don't mind). Thanks for making this.

Twentysix26 commented 8 years ago

You're free to modify it as you wish, as the license states. Have fun =)