Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
222ryan committed Nov 21, 2021
1 parent 35a752e commit 65ac1c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Commands/buy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, client):
@commands.command()
async def buy(self, ctx, amount: int = None, *, item: str = None):
# check if amount is none
if amount is None:
if amount is None or amount < 1:
embed = discord.Embed(description=":x: You need to specify an amount!", color=error_embed_colour)
await ctx.send(embed=embed)
return
Expand Down
2 changes: 1 addition & 1 deletion Commands/sell.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, client):
@commands.command()
async def sell(self, ctx, amount: int = None, *, item: str = None):
# check if amount is none
if amount is None:
if amount is None or amount < 1:
embed = discord.Embed(description=":x: You need to specify an amount!", color=error_embed_colour)
await ctx.send(embed=embed)
return
Expand Down

0 comments on commit 65ac1c0

Please sign in to comment.