remove await from starting the scheduler
This commit is contained in:
parent
123f1a0c65
commit
8156cb5a61
|
@ -66,7 +66,7 @@ async def time(ctx):
|
|||
@bot.command(name='start')
|
||||
async def start_task(ctx):
|
||||
# Schedule a task to run every 5 seconds
|
||||
await scheduler.add_job(func=my_task, id='my_task_id')
|
||||
scheduler.add_job(func=my_task, id='my_task_id')
|
||||
#scheduler.add_job(func=tick, id='tick_id', args=(ctx))
|
||||
#channel = bot.get_channel(channel_id)
|
||||
#if channel:
|
||||
|
|
Loading…
Reference in a new issue