mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -05:00
remove dineval (like in smp)
This commit is contained in:
parent
b1ef5ae40c
commit
ee8242b712
1 changed files with 14 additions and 14 deletions
|
@ -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'}));
|
||||
// });
|
||||
// }
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue