diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index ecdd1a7..6598ecd 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, 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)) #channel = bot.get_channel(channel_id) #if channel: