1
0
Fork 0
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/event/listeners/commandstarted.js

20 lines
487 B
JavaScript

5 years ago
//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;