From 86a4dbcf56bdd329130e3d4d19dcec1746ac0df7 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Wed, 27 Jan 2021 16:14:03 +0100 Subject: [PATCH] Fix some issues with the quote command --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 647626e..a2613da 100644 --- a/bot.py +++ b/bot.py @@ -249,7 +249,7 @@ async def quote_command(ctx: commands.Context, author: Optional[str], *, quote: quotes: Optional[dict[str,List[str]]] = config_get("guild_quotes", guild=ctx.guild.id) if quotes is None: quotes = {} - config_set("guild_quotes", quotes, ctx.guild.id) + config_set_raw("guild_quotes", quotes, ctx.guild.id) if author is None: authors = quotes.keys() @@ -259,7 +259,7 @@ async def quote_command(ctx: commands.Context, author: Optional[str], *, quote: quote = '\n'.join(map(lambda line: '> ' + line, random.choice(author_quotes).splitlines())) await ctx.channel.send(quote + '\n**' + author + '**') else: - await ctx.channel.send("Unkown author!") + await ctx.channel.send("No quotes present!") else: author = author.strip().title() quote = quote.strip()