15 lines
370 B
JavaScript
15 lines
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)
|
||
|
}
|
||
|
}
|