2021-10-21 19:28:23 +01:00
|
|
|
// SupportBot | Emerald Services
|
|
|
|
|
// Addon Structure
|
|
|
|
|
|
|
|
|
|
const fs = require("fs");
|
|
|
|
|
|
|
|
|
|
const Discord = require("discord.js");
|
|
|
|
|
|
2021-10-23 20:09:15 -05:00
|
|
|
const yaml = require("js-yaml");
|
2021-10-29 19:12:11 +01:00
|
|
|
const supportbot = yaml.load(
|
|
|
|
|
fs.readFileSync("./Configs/supportbot.yml", "utf8")
|
|
|
|
|
);
|
2021-10-21 19:28:23 +01:00
|
|
|
|
2021-10-23 20:09:15 -05:00
|
|
|
function RunFunction(interaction) {}
|
2021-10-21 19:28:23 +01:00
|
|
|
|
|
|
|
|
class Addon {
|
2021-10-23 20:09:15 -05:00
|
|
|
constructor(options) {
|
|
|
|
|
this.name = options.name;
|
|
|
|
|
this.description = options.description;
|
|
|
|
|
this.permission = options.permission;
|
|
|
|
|
this.slashCommandOptions = options.slashCommandOptions || [];
|
|
|
|
|
this.run = options.run;
|
|
|
|
|
}
|
2021-10-21 19:28:23 +01:00
|
|
|
}
|
|
|
|
|
|
2021-10-23 20:09:15 -05:00
|
|
|
module.exports = Addon;
|