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: [],
description: 'Safe eval 100% secure!!!',
trusted: 0,
usage: '<run|reset|server|dineval> <code>',
usage: '<run|reset|server> <code>',
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'}));
// });
// }
},
};