mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-12 08:14:34 +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: 'christmas',
|
||||
description: 'Calcule le nombre de jours jusqu\'à Noël.',
|
||||
emote: '🎄',
|
||||
utilisation: 'christmas ',
|
||||
category: 'game',
|
||||
|
||||
async execute(message, args, client) {
|
||||
let today = new Date();
|
||||
let xmas = new Date(today.getFullYear(), 11, 24);
|
||||
if (today.getMonth() == 11 && today.getDate() > 24) {
|
||||
xmas.setFullYear(xmas.getFullYear() + 1);
|
||||
}
|
||||
let one_day = 1000 * 60 * 60 * 24;
|
||||
let daysleft = Math.ceil((xmas.getTime() - today.getTime()) / (one_day));
|
||||
let days = daysleft + 1;
|
||||
|
||||
message.reply(`🎄・Noël\n${days} jours jusqu'à Noël`);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user