From 7d413d38ff35cf07e41f6a41562fee11a814fe0f Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Tue, 13 Aug 2024 23:33:35 -0600 Subject: [PATCH] userinfo: fix boosting badge math --- src/modules/utility/userinfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/utility/userinfo.js b/src/modules/utility/userinfo.js index 609a542..6710b1b 100644 --- a/src/modules/utility/userinfo.js +++ b/src/modules/utility/userinfo.js @@ -123,7 +123,7 @@ userinfo.callback = async function (msg, line) { } if (boosting) { let icon = Icons.badges.guild_booster_lvl1; - const delta = Date.now() - Math.floor(boosting / 1000); + const delta = Math.floor((Date.now() - boosting) / 1000); if (delta >= ONE_MONTH * 2) { icon = Icons.badges.guild_booster_lvl2; }