Update node.js
This commit is contained in:
parent
732846a838
commit
c67f4b1916
1 changed files with 6 additions and 8 deletions
14
node.js
14
node.js
|
@ -39,7 +39,7 @@ client.on('message', message => {
|
|||
let countdownId = message.mentions.channels.first().id;
|
||||
countdownChannel = client.channels.cache.get(countdownId);
|
||||
if(setNew == true){
|
||||
var myInterval = setInterval(countdowns, 1000, 1);
|
||||
setInterval(countdowns, 1000, 1);
|
||||
setNew == false;
|
||||
}
|
||||
else{
|
||||
|
@ -126,16 +126,14 @@ function countdowns(plus) {
|
|||
.addField("", "")
|
||||
.addField("Čas do maturity z Matematiky ", remainingMat)
|
||||
.addField("", "")
|
||||
.addField("Martinov nenápadný odpočet: ", remainingMartin)
|
||||
.addField("", "")
|
||||
.addField("Cyberpunk 2077: ", remainingPeter)
|
||||
.setColor("RANDOM");
|
||||
|
||||
if(remainingPeter > 0){
|
||||
embed.spliceFields(8);
|
||||
if(remainingPeter < 0){
|
||||
.addField("Cyberpunk 2077: ", remainingPeter);
|
||||
.addField("", "");
|
||||
}
|
||||
if (remainingMartin > 0) {
|
||||
embed.spliceFields(6, 3);
|
||||
if (remainingMartin < 0) {
|
||||
.addField("Martinov nenápadný odpočet: ", remainingMartin)
|
||||
}
|
||||
|
||||
left += plus;
|
||||
|
|
Loading…
Reference in a new issue