From eee672c1badeef6ae985b6f10252c43054a23f2d Mon Sep 17 00:00:00 2001 From: Snazzah Date: Tue, 11 Aug 2020 21:58:16 -0500 Subject: [PATCH] Hotfix client config stuff again --- src/commandloader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commandloader.js b/src/commandloader.js index 8192abe..691a7d7 100644 --- a/src/commandloader.js +++ b/src/commandloader.js @@ -1,6 +1,7 @@ const fs = require('fs'); const path = require('path'); const reload = require('require-reload')(require); +const config = require('config'); module.exports = class CommandLoader { constructor(client, cPath) { @@ -88,7 +89,7 @@ module.exports = class CommandLoader { * @param {Command} command */ async processCooldown(message, command) { - if (this.client.config.elevated.includes(message.author.id)) return true; + if (config.elevated.includes(message.author.id)) return true; const now = Date.now() - 1; const cooldown = command.cooldownAbs; let userCD = await this.client.db.hget(`cooldowns:${message.author.id}`, command.name) || 0;