Skip to content

Commit

Permalink
Update planttycoon.py
Browse files Browse the repository at this point in the history
Fixes the issue with the .gardening profile command.
  • Loading branch information
Luhruk authored Jan 11, 2024
1 parent dc74907 commit 6b15367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planttycoon/planttycoon.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ async def _profile(self, ctx: commands.Context, *, member: discord.Member = None
await ctx.send("ERROR\nYou blocked me, didn't you?")

em = discord.Embed(color=discord.Color.green()) # , description='\a\n')
avatar = author.avatar_url if author.avatar else author.default_avatar_url
avatar = author.avatar_url if author.avatar_url else author.default_avatar_url
em.set_author(name="Gardening profile of {}".format(author.name), icon_url=avatar)
em.add_field(name="**Thneeds**", value=str(gardener.points))
if gardener.current:
Expand Down

0 comments on commit 6b15367

Please sign in to comment.