-
Notifications
You must be signed in to change notification settings - Fork 1
New Command
Johannes7k75 edited this page May 8, 2021
·
1 revision
To add a new command to the Bot add the file in commands with the name <NAME>.js
add this in the file to start
module.exports = {
name: "<NAME>",
aliases: ["<ALIAS>"],
category: '<CATEGORY>',
utilisation: '{prefix}<UTILISATION>',
async execute(client, message) {
}
}
RPI! is my PREFIX
-
<NAME>
the name of the command -
<ALIAS>
a alias of the command for examplei
fromip
-
<CATEGORY>
the category your command is -
<UTILISATION>
how to use it for exampleRPI!ip
and in goes what your commands does
async execute(client, message) {
}
you can also use args in your command simply add args to the execute
async execute(client, message, args)