Files
SupportBot/Addons/addon.js
T

26 lines
767 B
JavaScript
Raw Permalink Normal View History

2025-09-25 13:09:00 +01:00
const Discord = require("discord.js");
const fs = require("fs");
const yaml = require("js-yaml");
const { Command } = require('../Structures/Addon.js'); // Adjust the path as needed
2026-05-16 15:10:27 +01:00
const supportbot = require("../Structures/ConfigStore").supportbot;
2025-09-25 13:09:00 +01:00
module.exports = new Command({
name: "addon",
description: "This is a sample addon!",
options: [],
permissions: ["Administrator"],
async run(interaction) {
let disableCommand = true;
const PingEmbed = new Discord.EmbedBuilder()
.setDescription(
`This is a sample addon.\n\nPong! \`${interaction.client.ws.ping} ms\``
)
.setColor(supportbot.Embed.Colours.General);
interaction.reply({
embeds: [PingEmbed],
});
},
});