Add cleanup command
This commit is contained in:
parent
cf1589eb2f
commit
c3234b7cda
1 changed files with 19 additions and 0 deletions
19
src/commands/cleanup.js
Normal file
19
src/commands/cleanup.js
Normal 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;
|
Loading…
Reference in a new issue