From 0baeaa44eda9b81956143ef0ab1b6196ad0d8971 Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Mon, 16 Feb 2026 17:29:51 -0500 Subject: [PATCH] Fix lint --- structures/AvatarChanger.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/structures/AvatarChanger.js b/structures/AvatarChanger.js index a1b60553..918d6b30 100644 --- a/structures/AvatarChanger.js +++ b/structures/AvatarChanger.js @@ -28,7 +28,6 @@ module.exports = class AvatarChanger { this.isWearingHat = true; const image = await this.editAvatar(hat); await this.client.user.setAvatar(image); - return; } setInterval() { @@ -37,14 +36,14 @@ module.exports = class AvatarChanger { now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate() + 1, - 0 ,0, 0, 0 + 0, 0, 0, 0 )); const msUntilNext = midnight - now; setTimeout(() => { const today = new Date(); const holiday = this.isHoliday(today); if (holiday) { - let hat = holiday.hat; + let { hat } = holiday; if (Array.isArray(hat)) hat = hat[Math.floor(Math.random() * hat.length)]; this.setAvatar(hat) .then(() => this.client.logger.info(`[AVATAR] Updated avatar to ${hat}!`)) @@ -73,10 +72,10 @@ module.exports = class AvatarChanger { isThanksgiving(day) { const thanksgiving = this.getThanksgiving(day.getUTCFullYear()); return ( - day.getUTCFullYear() === thanksgiving.getUTCFullYear() && - day.getUTCMonth() === thanksgiving.getUTCMonth() && - day.getUTCDate() === thanksgiving.getUTCDate() - ); + day.getUTCFullYear() === thanksgiving.getUTCFullYear() + && day.getUTCMonth() === thanksgiving.getUTCMonth() + && day.getUTCDate() === thanksgiving.getUTCDate() + ); } getThanksgiving(year) {