Update node.js
This commit is contained in:
parent
62a8fa2f4a
commit
2369e0e9fb
1 changed files with 4 additions and 4 deletions
8
node.js
8
node.js
|
@ -194,7 +194,7 @@ function sendEmbed(){
|
||||||
|
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.addField("Čas do konca... roka: ", remainingEnd)
|
.addField("Čas do konca... roka: ", remainingEnd)
|
||||||
.addField("", "")
|
.addField("", "")
|
||||||
.addField("Čas do odovzdania dokumentácie: ", remainingDok)
|
.addField("Čas do odovzdania dokumentácie: ", remainingDok)
|
||||||
.addField("", "")
|
.addField("", "")
|
||||||
.addField("Čas do maturity zo Slovenského jazyka: ", remainingSjl)
|
.addField("Čas do maturity zo Slovenského jazyka: ", remainingSjl)
|
||||||
|
@ -207,13 +207,13 @@ function sendEmbed(){
|
||||||
.setColor("RANDOM");
|
.setColor("RANDOM");
|
||||||
|
|
||||||
|
|
||||||
if(petrovOdpocet - now > 0){
|
if(petrovOdpocet - now < 0){
|
||||||
embed.spliceFields(8);
|
embed.spliceFields(8);
|
||||||
}
|
}
|
||||||
if (martinovOdpocet - now > 0) {
|
if (martinovOdpocet - now < 0) {
|
||||||
embed.spliceFields(6, 3);
|
embed.spliceFields(6, 3);
|
||||||
}
|
}
|
||||||
if(remainingEnd - now > 0){
|
if(endOdpocet - now < 0){
|
||||||
embed.spliceFields(0, 2);
|
embed.spliceFields(0, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue