fix time function context

This commit is contained in:
deflax 2024-01-16 18:57:34 +02:00
parent d839b229f7
commit c2919314b0

View file

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