mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-01 14:45:43 -05:00
18 lines
484 B
JavaScript
18 lines
484 B
JavaScript
const CommandError = require('../CommandModules/command_error')
|
|
module.exports = {
|
|
name: 'rc',
|
|
description:['refill the bots core'],
|
|
trustLevel: 0,
|
|
aliases:['refillcore'],
|
|
execute (context) {
|
|
const bot = context.bot
|
|
|
|
if (bot.options.Core.CorelessMode){
|
|
throw new CommandError('&4Could not fill core because Coreless mode is active!')
|
|
}else {
|
|
|
|
bot.core.refill()
|
|
context.source.sendFeedback('Successfully Refilled Core!')
|
|
}
|
|
}
|
|
} |