diff --git a/main.py b/main.py index 524a01b..4bc0ac9 100644 --- a/main.py +++ b/main.py @@ -99,10 +99,11 @@ async def watch(ctx, stock, est_price: typing.Optional[int]): @bot.command(aliases=['uw']) -async def unwatch(ctx, stock): +async def unwatch(ctx, *stocks): user = str(ctx.message.author) - stock = stock.upper() - database.unwatch(user, stock) + stocks = [stock.upper() for stock in stocks] + for stock in stocks: + database.unwatch(user, stock) return await ctx.send("Updated watchlist")