Skip to content

Instantly share code, notes, and snippets.

@Bluscream
Last active December 9, 2018 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bluscream/c60f070f6d81d877e1c0b6ea689546b0 to your computer and use it in GitHub Desktop.
Save Bluscream/c60f070f6d81d877e1c0b6ea689546b0 to your computer and use it in GitHub Desktop.
Splamy/TS3AudioBot rights.toml file
# Rights declaration file
# For more information about syntax and structure see here:
# https://github.com/Splamy/TS3AudioBot/wiki/Rights
"+" = [
# Basic stuff
"cmd.help",
"cmd.pm",
"cmd.subscribe",
"cmd.unsubscribe",
"cmd.kickme.*",
"cmd.version",
# Getting song info
"cmd.song",
"cmd.repeat",
"cmd.random",
# Conditionals and basic scripting
"cmd.if",
"cmd.print",
"cmd.rng",
"cmd.eval",
"cmd.take",
"cmd.xecute",
"cmd.getmy.*",
"cmd.json.*",
"cmd.bot.use",
"cmd.rights.can",
]
# Admin rule
[[rule]]
# Set your admin Group Ids here
groupid = [ 0 ]
# And/Or your admin Client Uids here
useruid = [ "" ]
"+" = "*"
# Playing rights
[[rule]]
# Set Group Ids you want to allow here
groupid = [ 0 ]
# And/Or Client Uids here
useruid = [ "" ]
# Or remove groupid and useruid to allow for everyone
"+" = [
# Play controls
"cmd.play",
"cmd.pause",
"cmd.stop",
"cmd.seek",
"cmd.volume",
# Playlist management
"cmd.list.*",
"cmd.add",
"cmd.clear",
"cmd.previous",
"cmd.next",
"cmd.random.*",
"cmd.repeat.*",
# History features
"cmd.history.add",
"cmd.history.from",
"cmd.history.id",
"cmd.history.last",
"cmd.history.play",
"cmd.history.till",
"cmd.history.title",
]
# Remove this if you want to allow users to save playlist locally
"-" = [ "cmd.list.save" ]
include = "$everyone"
[[rule]]
apitoken = "e3dvocUFTE1UWIvtW8qzulnWErI=:AsDhbG6lCc6HwSUM6KoFOsAuymHfUxxo"
useruid = [ "e3dvocUFTE1UWIvtW8qzulnWErI=", "IdLmZcQHNIpmXxKwQPmT0pgiDoc=", "FM0pqntCDqZrKoRgJhnDjpMm3H0="]
include = "$owner"
[[rule]]
visibility = "Private"
include = "$noprivate"
[[rule]]
bot = "alphakevin"
[[rule.rule]]
useruid = "BnOoI1/YoLpF5jOBxQXxRYc+a28="
include = "$admin"
[[rule.rule]]
useruid = []
include = "$mod"
[[rule.rule]]
useruid = [ "Y9qmYOOUjhwdOJ0u09zFnFJCOH0=" ]
include = "$channelmod"
[[rule.rule]]
useruid = []
include = "$webinterface"
[[rule.rule]]
groupid = [2]
include = "$user"
["$owner"]
"+" = "*"
["$admin"]
include = "$mod"
["$mod"]
include = ["$channelmod", "$user"]
["$channelmod"]
"+" = [
"cmd.id",
"cmd.pw", "cmd.tp", "cmd.ce.*"
]
["$webinterface"]
include = "$user"
"+" = [ "cmd.bot.use" ]
["$user"]
"+" = [
"cmd.play", "cmd.pause", "cmd.stop", "cmd.seek", "cmd.volume",
"cmd.list.*", "cmd.add", "cmd.clear", "cmd.previous", "cmd.next", "cmd.random.*", "cmd.repeat.*",
"cmd.history.add", "cmd.history.from", "cmd.history.id", "cmd.history.last", "cmd.history.play", "cmd.history.till", "cmd.history.title"
]
"-" = [ "cmd.list.save" ]
["$everyone"]
"+" = [
"cmd.json.api",
"cmd.subscribe", "cmd.unsubscribe",
"cmd.help", "cmd.pm", "cmd.kickme", "cmd.song",
"cmd.repeat", "cmd.random",
"cmd.rights.reload"
]
["$noprivate"]
"-" = [
"cmd.play", "cmd.pause", "cmd.stop", "cmd.seek",
"cmd.volume",
"cmd.history.play", "cmd.history.last", "cmd.list.play",
"cmd.kickme",
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment