mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 18:54:55 -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: [],
|
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'}));
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue