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):