Update main.js

This commit is contained in:
ZyLacx 2022-02-24 23:30:32 +01:00
parent 1a8541b2ba
commit 3a4926f0f2

View file

@ -219,17 +219,17 @@ async function pingEvent() {
const sysChannelId = sysChannelIds[i];
query = eModel.find({ guild: guildId, day: currentDay, month: currentMonth });
const guildEvents = await query.exec();
console.log(guildEvents);
for (let j = 0; j < globalEventList.length; j++) {
let specialMessage = '';
if (globalEventList[i].name == 'Valentine\'s Day') {
specialMessage = '\n Don\'t forget I love you all with all my hart 🥺';
}
client.channels.cache.get(sysChannelId)
.send(`It's **${globalEventList[i].name}** today!` + specialMessage);
.send(`It's **${globalEventList[i].name}** today!` + specialMessage);
}
for (let j = 0; j < guildEvents.length; j++) {
console.log(guildEvents[i].name);
console.log(guildEvents);
// console.log(guildEvents[i].name);
// client.channels.cache.get(sysChannelId)
// .send(`It's **${guildEvents[i].name}** today!`);
}