From a54a88af51003905a83732a3e8b959e2f1aa726e Mon Sep 17 00:00:00 2001 From: ZyLacx Date: Thu, 3 Mar 2022 15:58:51 +0100 Subject: [PATCH] Update main.js --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 9909e9a..2f799bf 100755 --- a/main.js +++ b/main.js @@ -201,7 +201,7 @@ async function pingEvent() { const sysChannelId = sysChannelIds[i]; const guild = client.guilds.cache.find((g) => g.id == guildId); for (let j = 0; j < birthdayList.length; j++) { - const userId = birthdayList[i].id; + const userId = birthdayList[j].id; if ((await guild.members.fetch()).find(user => user.id == userId) != undefined) { const gifAmount = 12; const embed = await help.getGifEmbed(`https://g.tenor.com/v1/search?q=anime-hug&key=${process.env.TENOR}&limit=${gifAmount}`, gifAmount);