i tried this:
timer = 15
random_timer = timer
channel = 108728307283
@tasks.loop(seconds = random_timer)
async def hello():
await channel.send("Hello!")
random_timer = timer + random.randint(1, 20)
hello.start()
My guess is that while a loop is running, it only looks at the value when it is run for the first time, so how do I set this random_timer value back to seconds without stopping the loop? In short, what should I do to send a message to a channel in a random time between 15-35 times?