Update main.js
This commit is contained in:
parent
1a8541b2ba
commit
3a4926f0f2
1 changed files with 3 additions and 3 deletions
6
main.js
6
main.js
|
@ -219,17 +219,17 @@ async function pingEvent() {
|
||||||
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();
|
||||||
console.log(guildEvents);
|
|
||||||
for (let j = 0; j < globalEventList.length; j++) {
|
for (let j = 0; j < globalEventList.length; j++) {
|
||||||
let specialMessage = '';
|
let specialMessage = '';
|
||||||
if (globalEventList[i].name == 'Valentine\'s Day') {
|
if (globalEventList[i].name == 'Valentine\'s Day') {
|
||||||
specialMessage = '\n Don\'t forget I love you all with all my hart 🥺';
|
specialMessage = '\n Don\'t forget I love you all with all my hart 🥺';
|
||||||
}
|
}
|
||||||
client.channels.cache.get(sysChannelId)
|
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++) {
|
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)
|
// 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