From a695d01800f643862af58b7ffb2746729311c92a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Sun, 31 Mar 2019 19:17:50 +0200 Subject: [PATCH] Haha yes GOLD --- event/listeners/commandstarted.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 event/listeners/commandstarted.js diff --git a/event/listeners/commandstarted.js b/event/listeners/commandstarted.js new file mode 100644 index 00000000..f5267ca9 --- /dev/null +++ b/event/listeners/commandstarted.js @@ -0,0 +1,20 @@ +//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; \ No newline at end of file