Update node.js

This commit is contained in:
ZyLacx 2021-02-12 18:43:29 +01:00
parent d1dc6a1de6
commit 733e2097ce

12
node.js
View file

@ -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;