chipmunkbot3/ban.js
2024-02-11 21:23:41 -05:00

19 lines
553 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 }