FridayNightFunkinBoyfriendBot/commands/core.js

15 lines
370 B
JavaScript
Raw Normal View History

2024-02-20 12:17:43 -05:00
const CommandError = require('../CommandModules/command_error')
module.exports = {
name: 'core',
description:['make me run a command in core'],
execute (context) {
const bot = context.bot
const message = context.arguments.join(' ')
if (message.startsWith('/')) {
bot.core.run(message.substring(1))
return
}
bot.core.run(message)
}
}