From eaa46988fb6097ba31c9ae9c92a93b62b39098ad Mon Sep 17 00:00:00 2001 From: Siphalor Date: Fri, 29 Jan 2021 11:42:15 +0100 Subject: [PATCH] Fix some quote remove issues --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index d4e508c..a3b9c16 100644 --- a/bot.py +++ b/bot.py @@ -315,7 +315,7 @@ async def quote_command(ctx: commands.Context, author: Optional[str], *, quote: async def quote_remove_command(ctx: commands.Context, author: str, quote: str): if not ctx.author.guild_permissions.administrator: await ctx.channel.send("Only admins are allowed to remove quotes!") - quotes: Optional[dict[str, List[str]]] = config_get("guild_access", guild=ctx.guild.id) + quotes: Optional[dict[str, List[str]]] = config_get("guild_quotes", guild=ctx.guild.id) if quotes is None: await ctx.channel.send("No quotes available!") @@ -329,6 +329,7 @@ async def quote_remove_command(ctx: commands.Context, author: str, quote: str): if not quotes[author]: quotes.pop(author) await ctx.channel.send("Successfully removed quote!") + config_save() return await ctx.channel.send("No such quote found!")