From f3fe61717ab8c735168eff2b7561764abfca48c7 Mon Sep 17 00:00:00 2001 From: 4Parker02991 <4parker02991@noreply.localhost> Date: Sat, 27 Jan 2024 11:10:20 -0500 Subject: [PATCH] Update commands/time.js --- commands/time.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/time.js b/commands/time.js index 39d24ce..108bb2e 100644 --- a/commands/time.js +++ b/commands/time.js @@ -13,7 +13,7 @@ const source = context.source const args = context.arguments const timezone = args.join(' ') - if (!moment.tz.names().map((zone) => zone.toLowerCase()).includes(timezone.toLowerCase()) && bot.options.Core.CorelessMode) { + if (!moment.tz.names().map((zone) => zone.toLowerCase()).includes(timezone.toLowerCase()) && !bot.options.Core.enabled) { bot.chat('Invalid timezone') }else{ throw new CommandError('Invalid timezone') @@ -23,7 +23,7 @@ const source = context.source const component = [{ text: 'The current date and time for the timezone ', color: 'white' }, { text: timezone, color: 'aqua' }, { text: ' is: ', color: 'white' }, { text: momented, color: 'green' }] - if (bot.options.Core.CorelessMode) { + if (!bot.options.Core.enabled) { function sleep(ms) { return new Promise((resolve) => setTimeout(resolve, ms)); }