mirror of
https://code.chipmunk.land/Parker2991/FridayNightFunkinBoyfriendBot.git
synced 2024-11-14 19:34:59 -05:00
15 lines
No EOL
370 B
JavaScript
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)
|
|
}
|
|
} |