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) /// console.log(summary)
// source.sendFeedback({ text: JSON.stringify(summary), color: 'green' }) // 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) bot.chat(ChatMessage.fromNotch(await sleep(500)
?? [cmd, { text:summary2, color: 'gray' }]).toMotd().replaceAll('§', '&')) ?? [cmd, { text:summary2, color: 'gray' }]).toMotd().replaceAll('§', '&'))
}else{ }else{
source.sendFeedback([cmd,{ text:`${summary2}`, color: 'green' }]) source.sendFeedback([cmd,{ text:`${summary2}`, color: 'green' }])
} }
} catch (e) { } catch (e) {
if(!bot.options.Core.CorelessMode){ if(bot.options.Core.CorelessMode){
bot.chat(ChatMessage.fromNotch([cmd, { text: `${e.toString()}`, color: 'red' }]).toMotd().replaceAll('§', '&')) bot.chat(ChatMessage.fromNotch([cmd, { text: `${e.toString()}`, color: 'red' }]).toMotd().replaceAll('§', '&'))
}else{ }else{
source.sendFeedback([cmd, { text: `${e}`, color: 'red' }]) source.sendFeedback([cmd, { text: `${e}`, color: 'red' }])