forked from Supositware/Haha-Yes
reload listener
This commit is contained in:
parent
3a86958cee
commit
963981401d
1 changed files with 30 additions and 0 deletions
30
commands/owner/reloadlisteners.js
Normal file
30
commands/owner/reloadlisteners.js
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
const { Command } = require('discord-akairo');
|
||||||
|
|
||||||
|
class reloadlistenerCommand extends Command {
|
||||||
|
constructor() {
|
||||||
|
super('reloadlistener', {
|
||||||
|
aliases: ['reloadlistener'],
|
||||||
|
category: 'owner',
|
||||||
|
ownerOnly: 'true',
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
id: 'listener',
|
||||||
|
type: 'string',
|
||||||
|
match: 'rest'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
description: {
|
||||||
|
content: 'reload command',
|
||||||
|
usage: '[command]',
|
||||||
|
examples: ['ping']
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async exec(message, args) {
|
||||||
|
this.client.listenerHandler.reload(args.listener);
|
||||||
|
return message.channel.send(`successfully reloaded listener ${args.listener}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = reloadlistenerCommand;
|
Loading…
Reference in a new issue