set the trigger
This commit is contained in:
parent
51ed9c4aed
commit
4c0aba233b
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ async def time(ctx):
|
||||||
@bot.command(name='start')
|
@bot.command(name='start')
|
||||||
async def start_task(ctx):
|
async def start_task(ctx):
|
||||||
# Schedule a task to run every 5 seconds
|
# Schedule a task to run every 5 seconds
|
||||||
scheduler.add_job(func=my_task, seconds=5, id='my_task_id')
|
scheduler.add_job(func=my_task, trigger=IntervalTrigger(seconds=5), id='my_task_id')
|
||||||
#scheduler.add_job(func=tick, id='tick_id', args=(ctx))
|
#scheduler.add_job(func=tick, id='tick_id', args=(ctx))
|
||||||
#channel = bot.get_channel(channel_id)
|
#channel = bot.get_channel(channel_id)
|
||||||
#if channel:
|
#if channel:
|
||||||
|
|
Loading…
Reference in a new issue