How to Run Daily

I’ve seen questions asked like this in the past, but it seems there have been significant enough changes to Glitch that this question is valid again.

I have a Slack app that I want to post a set of messages daily. It is not a bot or spam. I am using JS and Bolt.

I have tried node-cron, but since the application goes to sleep after 5 minutes of inactivity, the cron job does not run on the schedule.

I have not tried node-schedule, but I can’t see how this would be any different from node-cron, since “scheduled jobs will only fire as long as your script is running”.

My current solution uses ExpressReceiver with Bolt to create an EP, and then calling that with cron-job.org. Unfortunately, it seems this won’t work because Glitch is blocking ping services.

So I’m out of ideas. Is this still possible?

1 Like

can you run the cron yourself, you’ll have to set a user-agent header in the request