/* eslint-disable max-len */ const util = require('util'); const {stylize} = require('../util/colors/minecraft'); module.exports = { name: 'servereval', alias: [], description: 'Eval command without vm2', trusted: 2, usage: ' ', execute: function(bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash) { if (args[0] === ownerhash) { try { bot.tellraw('@a', {text: `${util.inspect(eval(args.slice(1).join(' ')), {stylize: stylize})}`.substring(0, 32000)}); } catch (err) { bot.tellraw('@a', {text: `${util.inspect(err).replaceAll('runner', 'chayapak1')}`, color: 'red'}); } } else { throw new Error('Invalid OwnerHash'); } }, };