Update main.js
This commit is contained in:
parent
3a4926f0f2
commit
a9a9e4761a
1 changed files with 1 additions and 2 deletions
3
main.js
3
main.js
|
@ -215,7 +215,6 @@ async function pingEvent() {
|
||||||
|
|
||||||
for (let i = 0; i < guildIds.length; i++) {
|
for (let i = 0; i < guildIds.length; i++) {
|
||||||
const guildId = guildIds[i];
|
const guildId = guildIds[i];
|
||||||
console.log(guildIds);
|
|
||||||
const sysChannelId = sysChannelIds[i];
|
const sysChannelId = sysChannelIds[i];
|
||||||
query = eModel.find({ guild: guildId, day: currentDay, month: currentMonth });
|
query = eModel.find({ guild: guildId, day: currentDay, month: currentMonth });
|
||||||
const guildEvents = await query.exec();
|
const guildEvents = await query.exec();
|
||||||
|
@ -228,7 +227,7 @@ async function pingEvent() {
|
||||||
.send(`It's **${globalEventList[i].name}** today!` + specialMessage);
|
.send(`It's **${globalEventList[i].name}** today!` + specialMessage);
|
||||||
}
|
}
|
||||||
for (let j = 0; j < guildEvents.length; j++) {
|
for (let j = 0; j < guildEvents.length; j++) {
|
||||||
console.log(guildEvents);
|
console.log(guildEvents[i]);
|
||||||
// console.log(guildEvents[i].name);
|
// console.log(guildEvents[i].name);
|
||||||
// client.channels.cache.get(sysChannelId)
|
// client.channels.cache.get(sysChannelId)
|
||||||
// .send(`It's **${guildEvents[i].name}** today!`);
|
// .send(`It's **${guildEvents[i].name}** today!`);
|
||||||
|
|
Loading…
Reference in a new issue