From 3fa19cb658b880160e36afc745f5994cb84f9c47 Mon Sep 17 00:00:00 2001 From: 4Parker02991 <4parker02991@noreply.localhost> Date: Sat, 27 Jan 2024 10:10:35 -0500 Subject: [PATCH] Update commands/wiki.js --- commands/wiki.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/wiki.js b/commands/wiki.js index 8fc1205..63af0e7 100644 --- a/commands/wiki.js +++ b/commands/wiki.js @@ -30,14 +30,14 @@ function sleep(ms) { /// console.log(summary) // source.sendFeedback({ text: JSON.stringify(summary), color: 'green' }) - if (!bot.options.Core.CorelessMode){ + if (bot.options.Core.CorelessMode){ bot.chat(ChatMessage.fromNotch(await sleep(500) ?? [cmd, { text:summary2, color: 'gray' }]).toMotd().replaceAll('§', '&')) }else{ source.sendFeedback([cmd,{ text:`${summary2}`, color: 'green' }]) } } catch (e) { - if(!bot.options.Core.CorelessMode){ + if(bot.options.Core.CorelessMode){ bot.chat(ChatMessage.fromNotch([cmd, { text: `${e.toString()}`, color: 'red' }]).toMotd().replaceAll('§', '&')) }else{ source.sendFeedback([cmd, { text: `${e}`, color: 'red' }])