From f7a4c7b6163e12f16e0658f7b6bd41a0215f0076 Mon Sep 17 00:00:00 2001 From: Noah Date: Sat, 18 Dec 2021 18:56:02 -0600 Subject: [PATCH] rename var + remove unused code --- Structures/Event.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Structures/Event.js b/Structures/Event.js index 61e4381..d644b72 100644 --- a/Structures/Event.js +++ b/Structures/Event.js @@ -1,21 +1,9 @@ // SupportBot | Emerald Services // Event Structure - -const fs = require("fs"); - -const Discord = require("discord.js"); - -const yaml = require("js-yaml"); -const supportbot = yaml.load( - fs.readFileSync("./Configs/supportbot.yml", "utf8") -); - -function RunFunction(client, ...eventArgs) {} - class Event { - constructor(event, runFunction) { + constructor(event, run) { this.event = event; - this.run = runFunction; + this.run = run; } }