Update main.js

This commit is contained in:
ZyLacx 2022-03-03 15:58:51 +01:00 committed by GitHub
parent 672ec62180
commit a54a88af51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,7 +201,7 @@ async function pingEvent() {
const sysChannelId = sysChannelIds[i]; const sysChannelId = sysChannelIds[i];
const guild = client.guilds.cache.find((g) => g.id == guildId); const guild = client.guilds.cache.find((g) => g.id == guildId);
for (let j = 0; j < birthdayList.length; j++) { 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) { if ((await guild.members.fetch()).find(user => user.id == userId) != undefined) {
const gifAmount = 12; const gifAmount = 12;
const embed = await help.getGifEmbed(`https://g.tenor.com/v1/search?q=anime-hug&key=${process.env.TENOR}&limit=${gifAmount}`, gifAmount); const embed = await help.getGifEmbed(`https://g.tenor.com/v1/search?q=anime-hug&key=${process.env.TENOR}&limit=${gifAmount}`, gifAmount);