emit event
This commit is contained in:
parent
a457930fa5
commit
4f1c830e06
1 changed files with 31 additions and 0 deletions
31
commands/owner/emit.js
Normal file
31
commands/owner/emit.js
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
const { Command } = require('discord-akairo');
|
||||||
|
|
||||||
|
class emitCommand extends Command {
|
||||||
|
constructor() {
|
||||||
|
super('emit', {
|
||||||
|
aliases: ['emit'],
|
||||||
|
split: 'none',
|
||||||
|
category: 'owner',
|
||||||
|
ownerOnly: 'true',
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
id: 'event',
|
||||||
|
prompt: 'Wich event should i trigger?',
|
||||||
|
type: 'string'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
description: {
|
||||||
|
content: 'Trigger an event',
|
||||||
|
usage: '[event]',
|
||||||
|
examples: ['ready']
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async exec(message, args) {
|
||||||
|
this.client.emit(`${args.event}`);
|
||||||
|
return message.channel.send(`${args.event} has been emited!`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = emitCommand;
|
Loading…
Reference in a new issue