Add cleanup command

This commit is contained in:
1computer1 2019-05-22 13:35:09 -04:00
parent cf1589eb2f
commit c3234b7cda

19
src/commands/cleanup.js Normal file
View file

@ -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;