<commit_before>exports.run = (client, msg, [action, key, value]) => {
  if(action === "list") {
    msg.channel.sendCode("json", require("util").inspect(msg.guildConf));
    return;
  } else

  if(action === "get") {
    if(!key) return msg.reply("Please provide a key you wish to view");
    msg.reply(`The value for ${key} is currently: ${msg.guildConf[key]}`);
    return;
  } else

  if(action === "set") {
    if(!key || !value) return msg.reply("Please provide both a key and value!");
    client.funcs.confs.set(msg.guild, key, value);
    return msg.reply(`The value for ${key} has been set to: ${value}`);
  } else

  if(action === "reset") {
    if(!key) return msg.reply("Please provide a key you wish to reset");
    client.funcs.confs.resetKey(msg.guild, key);
    return msg.reply("The key has been reset.");
  }
};

exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: [],
  permLevel: 3,
  botPerms: [],
  requiredFuncs: []
};

exports.help = {
  name: "conf",
  description: "Define per-server configuration.",
  usage: "<set|get|reset|list> [key:str] [channel:channel|user:user|int:int|str:str]",
  usageDelim: " "
};<commit_msg>Added role to conf usage<commit_after>exports.run = (client, msg, [action, key, value]) => {
  if(action === "list") {
    msg.channel.sendCode("json", require("util").inspect(msg.guildConf));
    return;
  } else

  if(action === "get") {
    if(!key) return msg.reply("Please provide a key you wish to view");
    msg.reply(`The value for ${key} is currently: ${msg.guildConf[key]}`);
    return;
  } else

  if(action === "set") {
    if(!key || !value) return msg.reply("Please provide both a key and value!");
    client.funcs.confs.set(msg.guild, key, value);
    return msg.reply(`The value for ${key} has been set to: ${value}`);
  } else

  if(action === "reset") {
    if(!key) return msg.reply("Please provide a key you wish to reset");
    client.funcs.confs.resetKey(msg.guild, key);
    return msg.reply("The key has been reset.");
  }
};

exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: [],
  permLevel: 3,
  botPerms: [],
  requiredFuncs: []
};

exports.help = {
  name: "conf",
  description: "Define per-server configuration.",
  usage: "<set|get|reset|list> [key:str] [channel:channel|user:user|role:role|int:int|str:str]",
  usageDelim: " "
};
{'fraction_non_alphanumeric': 0.18640444634459172, 'fraction_numerical': 0.0008550662676357417, 'mean_word_length': 3.864864864864865, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4002235', 'n_tokens_mistral': 815, 'n_tokens_neox': 808, 'n_words': 206}