Create an Addon

Module Tutorial

What's a Addon?

Zeltux has a unique design that allows you to create, add or buy more addons to work with the discord bot. These allow you to add additional features to the bot allowing it to do more customized things.

We're now on Discord.js v12.2.0 and Node.js v14.3.0.

Create a Addon

File Format

const Discord = require("discord.js")
commands = []
events = []
module.exports = { commands, events }

Commands

{
name: 'command',
aliases: [''],
run: async (client, message, args) => {
// Command Code
}
}

Events

{
name: 'eventName',
run: async (client, arguments) => {
// Event Code
}
}

Example

const Discord = require("discord.js")
// Define all commands
commands = [
{
name: 'test',
aliases: [''],
run: async (client, message, args) => {
message.channel.send('Test')
}
},
{
name: 'test1',
aliases: [''],
run: async (client, message, args) => {
message.channel.send('Test1')
}
}
]
// Define all events
events = [
{
name: 'message',
run: async (client, message, args) => {
message.channel.send('Message event ran')
}
}
]
module.exports = { commands, events }

Selling Addons

It is strictly against our rules to sell a addon you have created to anyone else. Only verified third party developers or Zeltux developers are allowed to sell addons.