mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
9bd39c69ca
sinon il y a pleins de truc comme les anti raid , des coorectif ect
20 lines
681 B
JavaScript
20 lines
681 B
JavaScript
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`);
|
|
},
|
|
}; |