mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
grand commit que tutur attend ( marche pas le raidmode en dev)
sinon il y a pleins de truc comme les anti raid , des coorectif ect
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
module.exports = {
|
||||
name: 'halloween',
|
||||
description: 'Calcule le nombre de jours jusqu\'à Halloween.',
|
||||
emote: '🎃',
|
||||
utilisation: 'halloween ',
|
||||
category: 'game',
|
||||
|
||||
async execute(message, args, client) {
|
||||
let today = new Date();
|
||||
let halloween = new Date(today.getFullYear(), 9, 31);
|
||||
if (today.getMonth() > 9) {
|
||||
halloween.setFullYear(halloween.getFullYear() + 1);
|
||||
}
|
||||
let one_day = 1000 * 60 * 60 * 24;
|
||||
let daysleft = Math.ceil((halloween.getTime() - today.getTime()) / (one_day));
|
||||
let days = daysleft + 1;
|
||||
|
||||
message.reply(`🎃・Halloween\n${days} jours jusqu'à Halloween`);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user