diff --git a/node.js b/node.js index 057557c..27597cd 100644 --- a/node.js +++ b/node.js @@ -20,7 +20,6 @@ var remainingDok; var remainingMartin; var remainingEnd; var left = 0; -var andrewCountdown = new Date("2021, 2, 11, 17:00").getTime(); var end = false; var ping = 86400; var countdownChannel; @@ -30,7 +29,6 @@ var otherChannel; client.once('ready', () => { console.log('Im online!'); - channelsend = client.channels.cache.find(channel => channel.id === "490610642106056707"); countdownChannel = client.channels.cache.find(channel => channel.id === "765243559758397470"); setInterval(countdowns, 1000, 1); }); @@ -113,16 +111,6 @@ client.on('message', message => { function countdowns(plus) { left += plus; - andrewCountdown; - let rn = new Date().getTime(); - - if(rn > andrewCountdown && end == false){ - channelsend.send("<@401044257655488514> BITCH, DING DONG BEŽ SI ROBIŤ MOTIVAČNÝ"); - channelsend.send("<@401044257655488514> DING DOOOOONG"); - channelsend.send("<@401044257655488514>"); - channelsend.send("<@401044257655488514>"); - end = true; - } let now = new Date().toDateString;