remove dineval (like in smp)

This commit is contained in:
ChomeNS 2022-08-25 17:04:43 +07:00
parent b1ef5ae40c
commit ee8242b712

View file

@ -9,7 +9,7 @@ module.exports = {
alias: [], alias: [],
description: 'Safe eval 100% secure!!!', description: 'Safe eval 100% secure!!!',
trusted: 0, trusted: 0,
usage: '<run|reset|server|dineval> <code>', usage: '<run|reset|server> <code>',
execute: function(bot, username, usernameraw, sender, prefix, args) { execute: function(bot, username, usernameraw, sender, prefix, args) {
if (args[0]==='run') { if (args[0]==='run') {
try { try {
@ -34,18 +34,18 @@ module.exports = {
bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${e}`, color: 'red'})); bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${e}`, color: 'red'}));
}); });
} }
if (args[0]==='dineval') { // if (args[0]==='dineval') {
axios // axios
.get('https://eval.dinhero21.repl.co', { // .get('https://eval.dinhero21.repl.co', {
headers: { // headers: {
data: args[1], // data: args[1],
colors: 'minecraft', // colors: 'minecraft',
}, // },
}).then((res) => { // }).then((res) => {
bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${res.data}`})); // bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${res.data}`}));
}).catch((e) => { // }).catch((e) => {
bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${e}`, color: 'red'})); // bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${e}`, color: 'red'}));
}); // });
} // }
}, },
}; };