Skip to content

Commit

Permalink
Merge pull request #242 from SylteA/dev
Browse files Browse the repository at this point in the history
Update commands.py
  • Loading branch information
SylteA authored Oct 25, 2023
2 parents e2a96a5 + 29f237d commit a39a73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/extensions/levelling/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ async def rank(self, interaction: core.InteractionType, member: discord.Member =

level = utils.get_level_for_xp(record.total_xp)
prev_xp = utils.get_xp_for_level(level)
next_xp = utils.get_xp_for_level(level + 1)
next_xp = utils.get_xp_for_level(level + 1) - prev_xp
curr_xp = record.total_xp - prev_xp

# Run the image generation in a thread to avoid blocking
Expand Down

0 comments on commit a39a73f

Please sign in to comment.