From 51ed9c4aed2ab2087f3b641140c884dcb5cc5340 Mon Sep 17 00:00:00 2001 From: deflax Date: Tue, 16 Jan 2024 19:28:10 +0200 Subject: [PATCH] schedule the test task to run every 5 seconds --- src/discordbot/discordbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index 3710a52..ecdd1a7 100644 --- a/src/discordbot/discordbot.py +++ b/src/discordbot/discordbot.py @@ -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: