- Install Node.js
- Download & install
- Setup Node packages
- Open
cmd
and runnpm install prompt fs discord.js-selfbot-v13 discord-bettermarkdown gradient-string
- Open
- Run SelfBot
- Open
cmd
in SelfBot directory and runnode index.js
- Open
- Inside index.js
commands.push({
name: "command name",
aliases: [ "command alias 1", "command alias 2" ],
description: "command description",
func: (msg, args) => { // msg - message sent, args - message arguments
// command code
}
});
- Externally
- Must be in
commands
directory!
- Must be in
module.exports = {
name: "command name",
aliases: [ "command alias 1", "command alias 2" ],
description: "command description",
func: (msg, args) => { // msg - message sent, args - message arguments
// command code
}
};
You can find examples here