Skip to content

Commit

Permalink
better formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiDuncan committed Dec 13, 2023
1 parent 4577f56 commit ee91952
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sizebot/cogs/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,10 @@ async def food(self, ctx, food: typing.Union[DigiObject, str], *, who: typing.Un
cost = food.price * food_per_day if food.price else None

if food_per_day >= 1:
foodout = f"{userdata.nickname} would need to eat **{food_per_day:,.1} {food.name_plural}** per day.\n(1 {food.name} is {food.calories} calories.)"
foodout = f"{userdata.nickname} would need to eat **{food_per_day:,.1} {food.name_plural}** per day."
if cost:
foodout += f"\nThat would cost **${cost:,.2}**."
foodout += f"\n(1 {food.name} is {food.calories} calories.)"
else:
foodout = f"A {food.name} ({food.calories} calories) would last {userdata.nickname} **{prettyTimeDelta(86400 * days_per_food, roundeventually=True)}.**"

Expand Down

0 comments on commit ee91952

Please sign in to comment.