Update commands/wiki.js

This commit is contained in:
4Parker02991 2024-01-27 10:10:35 -05:00
parent 8f6b539b2a
commit 3fa19cb658

View file

@ -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' }])