From ee8242b7126ba2a00e2863405c46761df5cb0fa0 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Thu, 25 Aug 2022 17:04:43 +0700 Subject: [PATCH] remove dineval (like in smp) --- commands/eval.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/commands/eval.js b/commands/eval.js index 219087f..af59330 100644 --- a/commands/eval.js +++ b/commands/eval.js @@ -9,7 +9,7 @@ module.exports = { alias: [], description: 'Safe eval 100% secure!!!', trusted: 0, - usage: ' ', + usage: ' ', execute: function(bot, username, usernameraw, sender, prefix, args) { if (args[0]==='run') { try { @@ -34,18 +34,18 @@ module.exports = { bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${e}`, color: 'red'})); }); } - if (args[0]==='dineval') { - axios - .get('https://eval.dinhero21.repl.co', { - headers: { - data: args[1], - colors: 'minecraft', - }, - }).then((res) => { - bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${res.data}`})); - }).catch((e) => { - bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${e}`, color: 'red'})); - }); - } + // if (args[0]==='dineval') { + // axios + // .get('https://eval.dinhero21.repl.co', { + // headers: { + // data: args[1], + // colors: 'minecraft', + // }, + // }).then((res) => { + // bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${res.data}`})); + // }).catch((e) => { + // bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${e}`, color: 'red'})); + // }); + // } }, };