Update commands/evaljs.js
This commit is contained in:
parent
2e06642d9d
commit
3c6477223a
1 changed files with 4 additions and 4 deletions
|
@ -70,14 +70,14 @@ try {
|
||||||
timeout: 1000
|
timeout: 1000
|
||||||
})
|
})
|
||||||
nerd = result;
|
nerd = result;
|
||||||
if(!bot.options.Core.CorelessMode){
|
if(bot.options.Core.CorelessMode){
|
||||||
bot.chat(ChatMessage.fromNotch([cmd, { text: util.inspect(result, { stylize }) }]).toMotd().replaceAll('§', '&'))
|
bot.chat(ChatMessage.fromNotch([cmd, { text: util.inspect(result, { stylize }) }]).toMotd().replaceAll('§', '&'))
|
||||||
}else{
|
}else{
|
||||||
source.sendFeedback([cmd, { text: util.inspect(result, { stylize }) }]);
|
source.sendFeedback([cmd, { text: util.inspect(result, { stylize }) }]);
|
||||||
}
|
}
|
||||||
} catch (reason) {
|
} catch (reason) {
|
||||||
nerd = reason;
|
nerd = reason;
|
||||||
if(!bot.options.Core.CorelessMode){
|
if(bot.options.Core.CorelessMode){
|
||||||
bot.chat(ChatMessage.fromNotch([cmd, { text: String(reason.stack), color: 'white' }]).toMotd().replaceAll('§', '&'))
|
bot.chat(ChatMessage.fromNotch([cmd, { text: String(reason.stack), color: 'white' }]).toMotd().replaceAll('§', '&'))
|
||||||
}else{
|
}else{
|
||||||
source.sendFeedback([cmd, { text: String(reason.stack), color: 'white' }]);
|
source.sendFeedback([cmd, { text: String(reason.stack), color: 'white' }]);
|
||||||
|
@ -86,7 +86,7 @@ try {
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
} catch (reason) {
|
} catch (reason) {
|
||||||
if(!bot.options.Core.CorelessMode){
|
if(bot.options.Core.CorelessMode){
|
||||||
bot.chat(ChatMessage.fromNotch([cmd, { text: String("UwU OwO ewwor" + reason.stack), color: 'white' }]).toMotd().replaceAll('§', '&'))
|
bot.chat(ChatMessage.fromNotch([cmd, { text: String("UwU OwO ewwor" + reason.stack), color: 'white' }]).toMotd().replaceAll('§', '&'))
|
||||||
}else{
|
}else{
|
||||||
source.sendFeedback([cmd, { text: String("UwU OwO ewwor" + reason.stack), color: 'white' }]);
|
source.sendFeedback([cmd, { text: String("UwU OwO ewwor" + reason.stack), color: 'white' }]);
|
||||||
|
@ -110,7 +110,7 @@ if(!bot.options.Core.CorelessMode){
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
if(!bot.options.Core.CorelessMode){
|
if(bot.options.Core.CorelessMode){
|
||||||
bot.chat(ChatMessage.fromNotch([cmd, { text: 'Successfully reset the eval context', color: 'green' }]).toMotd().replaceAll('§', '&'))
|
bot.chat(ChatMessage.fromNotch([cmd, { text: 'Successfully reset the eval context', color: 'green' }]).toMotd().replaceAll('§', '&'))
|
||||||
}else{
|
}else{
|
||||||
source.sendFeedback([cmd, { text: 'Invalid option!', color: 'dark_red' }])
|
source.sendFeedback([cmd, { text: 'Invalid option!', color: 'dark_red' }])
|
||||||
|
|
Loading…
Reference in a new issue