Skip to content

Commit

Permalink
[Discord] Improve adventure forage stop command formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Dec 18, 2023
1 parent 60723b4 commit a8d5600
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Discord/cogs/adventure.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,17 @@ async def forage_stop(self, ctx):
player = await self.get_adventure_player(ctx.author.id)
stopped = await player.stop_foraging()
if stopped[0]:
output = (f":herb: You were foraging {stopped[0]} for {stopped[1]:,.2f} min. and received {stopped[2]:,} {stopped[0]} and xp.\n"
f"While you were foraging, you also found {stopped[3]:,} {FORAGEABLES[stopped[0]][0]}")
output = (
f":herb: You were foraging {stopped[0]} for {stopped[1]:,.2f} min. and received {stopped[2]:,} {stopped[0]} and xp.\n"
f"While you were foraging, you also found {stopped[3]:,} {FORAGEABLES[stopped[0]][0]}"
)
if stopped[4]:
output += f" and {stopped[4]:,} {FORAGEABLES[stopped[0]][1]}!"
await ctx.embed_reply(output)
elif stopped[1]:
await ctx.embed_reply(f":no_entry: You're currently {stopped[1]}! You aren't foraging right now")
await ctx.embed_reply(
f":no_entry: You're currently {stopped[1]}! You aren't foraging right now"
)
else:
await ctx.embed_reply(":no_entry: You aren't foraging")

Expand Down

0 comments on commit a8d5600

Please sign in to comment.