FridayNightFunkinBoyfriendBot/commands/core.js
2024-02-20 17:12:40 +00:00

15 lines
No EOL
370 B
JavaScript

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)
}
}