From f434ab2bdf516974c39e91d8a448ccc7b3196312 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Wed, 27 Jan 2021 16:17:15 +0100 Subject: [PATCH] Some small quote improvements --- bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index c9107d4..f00f6c9 100644 --- a/bot.py +++ b/bot.py @@ -257,13 +257,13 @@ async def quote_command(ctx: commands.Context, author: Optional[str], *, quote: author = random.choice([*authors]) author_quotes = quotes[author] quote = '\n'.join(map(lambda line: '> ' + line, random.choice(author_quotes).splitlines())) - await ctx.channel.send(quote + '\n**' + author + '**') + await ctx.channel.send(quote + '\n *~' + author + '*') else: await ctx.channel.send("No quotes present!") else: author = author.strip().title() if quote: - quote = quote.strip() + quote = quote.strip().capitalize() if author in quotes: author_quotes: List[str] = quotes[author] regex = re.compile(r'[\W]') @@ -285,7 +285,7 @@ async def quote_command(ctx: commands.Context, author: Optional[str], *, quote: if author in quotes: quote = random.choice(quotes[author]) quote = '\n'.join(map(lambda line: '> ' + line, quote.splitlines())) - await ctx.channel.send(quote + '\n**' + author + '**') + await ctx.channel.send(quote + '\n *~ ' + author + '*') else: await ctx.channel.send("Unknown author!")