fix time function context
This commit is contained in:
parent
d839b229f7
commit
c2919314b0
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue