Addon System
Understanding and setting up addons. This system is meant for experienced developers.
Creating addons for Drako Bot
To start creating addons for Drako Bot, please review the examples within the addons > Example folder.
Types of addons
There are two main types of addons you can create for Drako Bot:
Command addons
Event addons
Command addons
Naming Convention: Command addons need to be named in the format
cmd_x(wherexis a unique name).
Example Command Addon
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('test')
.setDescription('Test command!'),
async execute(interaction, client) {
interaction.reply({ content: 'This is a test', flags: 64 });
}
};Event addons
Naming Convention: Event addons can be named anything. For example,
example_addon.
Example Event Addon
Steps to Create addons
1
2
3
Last updated