You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/commands/owner/emit.js

31 lines
593 B
JavaScript

5 years ago
const { Command } = require('discord-akairo');
class emitCommand extends Command {
5 years ago
constructor() {
super('emit', {
aliases: ['emit'],
split: 'none',
category: 'owner',
ownerOnly: 'true',
args: [
{
id: 'event',
prompt: 'Wich event should i trigger?',
type: 'string'
}
],
description: {
5 years ago
content: 'Trigger an event',
usage: '[event]',
examples: ['ready']
}
5 years ago
});
}
5 years ago
5 years ago
async exec(message, args) {
this.client.emit(`${args.event}`);
return message.channel.send(`${args.event} has been emited!`);
}
5 years ago
}
module.exports = emitCommand;