Skip to content

Commit

Permalink
fix for...
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiDuncan committed Dec 20, 2022
1 parent 0d603f3 commit aaafaa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sizebot/cogs/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ async def food(self, ctx, food: typing.Union[DigiObject, str], *, who: typing.Un
await ctx.send(f"{emojis.error} `{food.name}` is not a food.")
return

if isinstance(food, str):
if isinstance(food, str) and food != "random":
await ctx.send(f"{emojis.error} `{food}` is not a known object.")
return

Expand Down

0 comments on commit aaafaa1

Please sign in to comment.