Skip to content
Kalbintion Kier edited this page Oct 29, 2016 · 3 revisions

perm is a built-in command with Kdkbot that allows channel owners the ability to give other users permission over the bot. This can range from using commands up to including channel(Channel) modifications.

Syntax

  • quote <set> <user> <level> | <get> <user>

Get

quote get will retrieve a users permission rank level for the chat, and will present it in numerical form.

Set

quote set will set a users permission rank level for the chat, either given by in the form of an integer or a specific given word. See section Words.

Words

These words can be used whenever a rank level is required to be used. This is often seen when used with the perm command as well as in use with custom commands. These words are represented below and the values between the quotes, and not including the quotes themselves, are what should be provided for these cases. This information was adapted from the source code.

case "normal", "n":
return 1;

case "regular", "r":
return 2;

case "moderator", "mod", "m":
return 3;

case "supermoderator", "smod", "supermod", "sm":
return 4;

case "channeloperator", "chanop", "co", "op", "owner":
return 5;

case "max", "*":
return Integer.MAX_VALUE; // ~2.1 billion

case "/", "min":
return Integer.MIN_VALUE; // ~-2.1 billion

case "nobody", other given values:
return 0;
Clone this wiki locally