Update main.js
This commit is contained in:
parent
1a8541b2ba
commit
3a4926f0f2
1 changed files with 3 additions and 3 deletions
4
main.js
4
main.js
|
@ -219,7 +219,6 @@ 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') {
|
||||
|
@ -229,7 +228,8 @@ async function pingEvent() {
|
|||
.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!`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue