Custom Commands
All custom commands must follow the same template:
Execute Parameter
Type
Description
client
Discord Client
The selfbot client
message
Discord Message
The message that executed the command
args
Array
The message contents excluding the prefix and command name split by spaces into an array.
module.exports = {
name: "example", // Must be the same as the file name without .js
description: "Example custom command",
usage: "example [optional] {required}", // Show the args used for this command
useronly: false, // False allows people you are selfbot sharing with to use it
execute(client, message, args) {
message.channel.send("hello world"); // The code that executes when the
}, // command is run
};
If you attempt to create a custom command with the same name as a built in Nix command, it will be overwritten and not appear in the selfbot.
Last updated