diff --git a/bot.py b/bot.py index a3b9c16..f631d96 100644 --- a/bot.py +++ b/bot.py @@ -331,6 +331,12 @@ async def quote_remove_command(ctx: commands.Context, author: str, quote: str): await ctx.channel.send("Successfully removed quote!") config_save() return + # No matching quote found + try: + quote = int(quote) + quotes[author].pop(quote) + except ValueError: + pass await ctx.channel.send("No such quote found!")