Update commands/wiki.js
This commit is contained in:
parent
8f6b539b2a
commit
3fa19cb658
1 changed files with 2 additions and 2 deletions
|
@ -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' }])
|
||||||
|
|
Loading…
Reference in a new issue