From 77373670e6244f78f6c021d5fc0bba91fbbd843f Mon Sep 17 00:00:00 2001 From: Lilac-Rose Date: Mon, 20 Oct 2025 14:29:49 +0200 Subject: [PATCH] Added a default multiplier so the command doesnt error when getting the annual rank --- xp/rank.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xp/rank.py b/xp/rank.py index 03db176..ecf7388 100644 --- a/xp/rank.py +++ b/xp/rank.py @@ -48,6 +48,8 @@ class Rank(commands.Cog): remaining_cd = COOLDOWN - (time.time() - last_msg) cooldown = f"{int(remaining_cd)}s" if remaining_cd > 0 else "None!" + multiplier = 1.0 + # multiplier text only for lifetime multipliers_text = [] if lifetime and isinstance(user, discord.Member) and user.guild == interaction.guild: