k8thekat / GatekeeperV2

Update to Gatekeeper
GNU General Public License v3.0
27 stars 11 forks source link

More control over who can run a command. #16

Closed blacksythe closed 2 years ago

blacksythe commented 2 years ago

With current bot configuration I see 3 ways of doing this.

A. With current configuration

Add additional configuration file to define which commands are admin only For example

bot stop = admin bot restart = admin server restart = staff

B. With additional roles

bot stop = admin bot restart = dev server restart = staff

C. Customization Extravaganza

`admin { roleid = "" permissions: "all" }

dev { roleid = "" permissions: "all_bot_commands", "all_server_commands" }

maintenance { roleid = "" permissions: "all_server_commands", "bot restart", "bot start"

moderator { roleid = "" permissions: "server kick {user}", "server ban {user} {time (0 for perm)}

general roleid = "(set this to 0 for everyone, otherwise deny everything)" permissions: "server info", "spark tps", "other custom commands to be defined that can be sent to the server" `

k8thekat commented 2 years ago

This was added in 56c5603.

Will be testing stability and permissions shortly.