schedule the test task to run every 5 seconds

This commit is contained in:
deflax 2024-01-16 19:28:10 +02:00
parent 4cb5695855
commit 51ed9c4aed

View file

@ -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
scheduler.add_job(func=my_task, id='my_task_id')
scheduler.add_job(func=my_task, seconds=5, id='my_task_id')
#scheduler.add_job(func=tick, id='tick_id', args=(ctx))
#channel = bot.get_channel(channel_id)
#if channel: