diff --git a/src/commands/cleanup.js b/src/commands/cleanup.js new file mode 100644 index 0000000..84e47d5 --- /dev/null +++ b/src/commands/cleanup.js @@ -0,0 +1,19 @@ +const { Command } = require('discord-akairo'); + +class CleanupCommand extends Command { + constructor() { + super('cleanup', { + aliases: ['cleanup'], + ownerOnly: true, + clientPermissions: ['SEND_MESSAGES'] + }); + } + + async exec(message) { + await message.util.send('Cleaning up...'); + await this.client.languageHandler.cleanup(); + await message.util.send('Cleaned up!'); + } +} + +module.exports = CleanupCommand;