test
This commit is contained in:
parent
c7d4f0b332
commit
f02c4bd93c
1 changed files with 1 additions and 1 deletions
|
@ -53,12 +53,12 @@ async def start_task(ctx):
|
|||
scheduler.add_job(func=my_task, seconds=5, id='my_task_id', args=(ctx))
|
||||
#scheduler.add_job(func=tick, seconds=5, id='tick_id', args=(ctx))
|
||||
|
||||
@tasks.loop(seconds=10)
|
||||
async def my_task(ctx):
|
||||
# Your asynchronous task goes here
|
||||
print()
|
||||
await ctx.channel.send('Running my_task')
|
||||
|
||||
@tasks.loop(seconds=10)
|
||||
async def tick(ctx):
|
||||
await ctx.channel.send('Tick! The time is: %s' % datetime.now())
|
||||
|
||||
|
|
Loading…
Reference in a new issue