#??
1 messages · Page 1 of 1 (latest)
?
this doesn't makes any sense
doing it in a every minute cron
when i comment out the .setColor(..) it works fine
Mate. I have no Idea what the hell that is supposed to do, Even after you tried to explain I still don't understand.
console.log(1);
const message = (await channel.messages.fetch()).first();
const color = {
Delta: "RED",
Alpha: "BLUE",
Charlie: "GREEN",
Bravo: "PINK",
};//the pink worked once//its bravo rn back to delta//why is it leadin faction if it will lose all its points after?
console.log(color[lead]);
console.log(2);
//embed.setColor(color[lead]);//no well it worked once, well the names are correct and this is fine.. so why the hell
console.log("embedCheck", 1);
embed.setImage("https://i.gifer.com/BTCK.gif");
console.log("embedCheck", 2);
embed.setTitle(`${lead} Faction are leading`);
console.log("embedCheck", 3);
embed.addField(`Weekly Perks`, `- Increased RNG on all crates`);
console.log("embedCheck", 4);
embed.setDescription(
`${lead} faction dominated the realm and are now leading.`
);
This is giving me a headache.
it is supposed to set the color depending on the current leading faction basically