SupportBot Pre-7.2

SupportBot Build for DiscordJS 13
This commit is contained in:
ItzEmerald committed 2021-10-04 20:41:05 +01:00
1 parent 09f0873f27
commit 37c870c7ab
3723 files changed
+4075 -349720

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
// SupportBot | Emerald Services
// Command Structure
const fs = require("fs");
const Discord = require("discord.js");
const yaml = require('js-yaml');
const supportbot = yaml.load(fs.readFileSync('./Data/supportbot.yml', 'utf8'));
function RunFunction(message, args, client) {}
class Command {
constructor(options) {
this.name = options.name;
this.description = options.description;
this.permission = options.permission;
this.type = ["BOTH", "SLASH", "TEXT"].includes(options.type) ? options.type : "TEXT";
this.slashCommandOptions = options.slashCommandOptions || [];
this.run = options.run;
}
}
module.exports = Command;