From 51ed73c9960e04b00712ef151ec5482e9d968821 Mon Sep 17 00:00:00 2001 From: deflax Date: Thu, 6 Feb 2025 01:21:50 +0000 Subject: [PATCH] Remove the author name from hello.error function --- src/discordbot/discordbot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index f28457e..53a5f3d 100644 --- a/src/discordbot/discordbot.py +++ b/src/discordbot/discordbot.py @@ -55,8 +55,7 @@ async def hello(ctx): @hello.error async def hello_error(ctx, error): if isinstance(error, CheckFailure): - author_name = ctx.author.name - await ctx.channel.send(f'do I know you, `{author_name}`?') + await ctx.channel.send('do I know you?') @bot.command(name='time', help='Show current time') async def time(ctx):