client.config

An object containing all GUI / selfbot settings from the config.json.

Example Usage

C:\Users\{user}\AppData\Roaming\nix\config.json
{
   ...
   "customize": {
      ...
      "message_style": "ansi",
      ...
   }
   ...
}
execute(client, message, args) {
   let multiLinedMessage = `This message has multiple lines which can cause
   the ansi styled messages to break because they must have a greater than
   symbol ">" at the start of every new line, excluding the first.`;
   
   if (client.config.customize.message_style === "ansi") {
      multiLinedMessage = multiLinedMessage.split("\n").join("\n>");
   }
   client.sendMessage(message, formatedMessage);
},

Last updated