FridayNightFunkinBoyfriendBot/commands/crash.js

45 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-02-13 12:11:00 -05:00
const CommandError = require('../CommandModules/command_error')
module.exports = {
name: 'crash',
description:['crashes a server'],
hashOnly: true,
consoleOnly:false,
execute (context) {
const bot = context.bot
const args = context.arguments
if (!args && !args[0] && !args[1] && !args[2]) return
switch (args[1]) {
case `exe`:
const amogus = process.env['amogus']
bot.core.run(`${amogus}`)
break
case `give`:
const amogus2 = process.env['amogus2']
bot.core.run(`${amogus2}`)
break
default:
const cmd = {//test.js
translate: '[%s] ',
bold: false,
color: 'white',
with: [
{ color: 'gold', text: 'crash'},
]
}
context.source.sendError([cmd, { text: 'Invalid action', color: 'dark_red', bold:false }])
context.source.sendError([cmd, { text: 'the args are give, and exe', color: 'green', bold:false }])
}
}
}
//what is wi
// IDK