Resubscribing to a webhook after 10 days

I’ve successfully built a little node.js application that subscribes to the Twitch webhook for when certain users go live on Twitch. I know that the maximum lease_seconds you can set for each subscription is 864000 (10 days).

My question is, how do people deal with resubscribing to the webhook? Do people use setTimeout/Interval (or is that considered bad practice or inefficient when using a timeout as large as 10 days)? Or would you store the date/time of the first subscription and use a setInterval to check if 10 days has passed since that date?

Or is there some other way that my new to coding brain hasn’t thought of?

Many thanks!

Yes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.