From c2919314b0bbca16ed1ca58a1110d637893d81b2 Mon Sep 17 00:00:00 2001 From: deflax Date: Tue, 16 Jan 2024 18:57:34 +0200 Subject: [PATCH] fix time function context --- src/discordbot/discordbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index 46f2b49..2d6fcd7 100644 --- a/src/discordbot/discordbot.py +++ b/src/discordbot/discordbot.py @@ -62,8 +62,8 @@ async def epg(ctx): print(e) @bot.command(name='time') -async def time(): - await bot.channel.send('The time is: `%s`' % datetime.now()) +async def time(ctx): + await ctx.channel.send('The time is: `%s`' % datetime.now()) @bot.command(name='start') async def start_task(ctx):