Skip to content

Commit

Permalink
Merge pull request #96 from riazufila/release-v1.4.1
Browse files Browse the repository at this point in the history
Release v1.4.1
  • Loading branch information
riazufila authored May 7, 2021
2 parents d28285f + 2c292af commit e8dadb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def version(self, ctx):
db_ailie.disconnect()

# Change upon version update
version = "1.4.0"
version = "1.4.1"

# Mimic loading animation
msg = await ctx.send(
Expand Down
6 changes: 6 additions & 0 deletions cogs/pvp.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,12 @@ async def rank(self, ctx, scope="server"):
+ "or `global`."
)

# If no one has trophy
if not guardian_with_trophy:
await ctx.send("No one has trophies.")
db_ailie.disconnect()
return

# Display richest user in discord server
guardian_with_trophy_sorted = sorted(guardian_with_trophy)[::-1]
guardian_with_trophy = guardian_with_trophy_sorted[:10]
Expand Down

0 comments on commit e8dadb2

Please sign in to comment.