Create an Addon
Module Tutorial
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.7.0.
const Discord = require("discord.js")
commands = []
events = []
module.exports = { commands, events }
{
name: 'command',
aliases: [''],
run: async (client, message, args) => {
// Command Code
}
}
{
name: 'eventName',
run: async (client, arguments) => {
// Event Code
}
}
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 }
It is strictly against our rules to sell an addon you have created to anyone else. Only verified third-party developers or Zeltux developers are allowed to sell addons.
Last modified 2yr ago