Haha-Yes/event/listeners/commandstarted.js
2019-03-31 19:17:50 +02:00

20 lines
No EOL
487 B
JavaScript

//THIS IS FOR APRIL FOOLS PLEASE DELETE ME AFTER
const { Listener } = require('discord-akairo');
class commandStartedListener extends Listener {
constructor() {
super('commandStarted', {
emitter: 'commandHandler',
event: 'commandStarted'
});
}
async exec(message) {
let count = Math.random() * 100;
if (count < 20) {
message.channel.send('To further utilize this command, please visit https://namejeff.xyz/gold');
}
}
}
module.exports = commandStartedListener;