When april first, start Haha yes gold
This commit is contained in:
parent
a695d01800
commit
3dcb047afd
2 changed files with 18 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
||||||
//THIS IS FOR APRIL FOOLS PLEASE DELETE ME AFTER
|
|
||||||
const { Listener } = require('discord-akairo');
|
const { Listener } = require('discord-akairo');
|
||||||
|
|
||||||
class commandStartedListener extends Listener {
|
class commandStartedListener extends Listener {
|
||||||
|
@ -10,9 +9,24 @@ class commandStartedListener extends Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(message) {
|
async exec(message) {
|
||||||
|
//This is for april fools
|
||||||
|
let today = new Date();
|
||||||
|
let dd = today.getDate();
|
||||||
|
let mm = today.getMonth() + 1; //January is 0!
|
||||||
|
|
||||||
|
if (dd < 10) {
|
||||||
|
dd = '0' + dd;
|
||||||
|
}
|
||||||
|
if (mm < 10) {
|
||||||
|
mm = '0' + mm;
|
||||||
|
}
|
||||||
|
today = dd + '/' + mm;
|
||||||
|
//Only execute when its april first
|
||||||
|
if (today == '01/04') {
|
||||||
let count = Math.random() * 100;
|
let count = Math.random() * 100;
|
||||||
if (count < 20) {
|
if (count < 20) {
|
||||||
message.channel.send('To further utilize this command, please visit https://namejeff.xyz/gold');
|
return message.channel.send('To further utilize this command, please visit https://namejeff.xyz/gold', {files: ['img/gold.png']});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
BIN
img/gold.png
Normal file
BIN
img/gold.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
Loading…
Reference in a new issue