From 7f216d730373a753e1a9338018b62ee2e436aaea Mon Sep 17 00:00:00 2001 From: Travis Weir Date: Mon, 12 Jun 2023 14:08:27 -0500 Subject: [PATCH] Remove old code --- dozer/cogs/levels.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dozer/cogs/levels.py b/dozer/cogs/levels.py index fd43aea3..2f4ddb2d 100644 --- a/dozer/cogs/levels.py +++ b/dozer/cogs/levels.py @@ -687,7 +687,6 @@ async def rank(self, ctx: DozerContext, *, member: discord.Member = None): If no member is passed, the caller's ranking is shown. """ member = member or ctx.author - # embed = discord.Embed(color=member.color) guild_settings = self.guild_settings.get(ctx.guild.id) if guild_settings is None or not guild_settings.enabled: @@ -719,16 +718,12 @@ async def rank(self, ctx: DozerContext, *, member: discord.Member = None): else: rank = count img = self.make_new_rank_card(member, True, level, total_xp, level_floor, rank, count, level_xp) - # embed.description = (f"Level {level}, {total_xp - level_floor}/{level_xp} XP to level up ({total_xp} total)\n" - # f"#{rank} of {count} in this server") arr = BytesIO() img.save(arr, format='PNG') arr.seek(0) file = discord.File(fp=arr, filename=f'{member}.png') await ctx.send(file=file) - # embed.set_author(name=member.display_name, icon_url=member.display_avatar.replace(format='png', size=64)) - # await ctx.send(embed=embed) rank.example_usage = """ `{prefix}rank`: show your ranking