diff --git a/bot.py b/bot.py index e9ba0c9..39659ef 100644 --- a/bot.py +++ b/bot.py @@ -335,6 +335,10 @@ async def quote_remove_command(ctx: commands.Context, author: str, quote: str): try: quote = int(quote) quotes[author].pop(quote) + if not quotes[author]: + quotes.pop(author) + await ctx.channel.send("Successfully removed quote!") + config_save() return except ValueError: pass