From 04de6e6fc06b69cd4008d3b480964911b07a76ed Mon Sep 17 00:00:00 2001 From: ItzEmerald Date: Sat, 25 Jan 2020 13:48:02 +0000 Subject: [PATCH] Update index.js --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 112e177..07565ef 100644 --- a/index.js +++ b/index.js @@ -15,6 +15,9 @@ const bot = new Discord.Client(); bot.commands = new Discord.Collection(); bot.settings = require("./settings.json"); +const yaml = require('js-yaml'); +const supportbot.settings = yaml.load(fs.readFileSync('./supportbot-config.yml', 'utf8')); + fs.readdir("./commands/", (err, files) => { if(err) console.log(err);