chipmunkbot-archive/ban.js
2023-06-26 23:04:54 -04:00

19 lines
No EOL
551 B
JavaScript

const name = 'exploit'
const description = 'Uses exploits.'
const usage = '{prefix}exploit'
const aliases = ['exploit']
const enabled = true
const permLevel = 0
function execute(bot, cmd, player, args, handler) {
const exploit = args.shift()
bot.core.run(`/tellraw @a ${JSON.stringify([
{ text: 'Attempting exploit ', color: bot.colors.primary },
{ text: exploit, color: bot.colors.secondary },
'.'
])}`)
bot.exploits[exploit](args.join(' '))
}
module.exports = { name, description, usage, aliases, enabled, execute, permLevel }