Update main.js

This commit is contained in:
ZyLacx 2022-02-24 23:50:03 +01:00
parent 3a4926f0f2
commit a9a9e4761a

View file

@ -215,7 +215,6 @@ async function pingEvent() {
for (let i = 0; i < guildIds.length; i++) {
const guildId = guildIds[i];
console.log(guildIds);
const sysChannelId = sysChannelIds[i];
query = eModel.find({ guild: guildId, day: currentDay, month: currentMonth });
const guildEvents = await query.exec();
@ -228,7 +227,7 @@ async function pingEvent() {
.send(`It's **${globalEventList[i].name}** today!` + specialMessage);
}
for (let j = 0; j < guildEvents.length; j++) {
console.log(guildEvents);
console.log(guildEvents[i]);
// console.log(guildEvents[i].name);
// client.channels.cache.get(sysChannelId)
// .send(`It's **${guildEvents[i].name}** today!`);