The script is pretty simple since the restaurant has a nice API that it's own booking system uses. It's just a matter of checking if there are any available tables at a given day. If there are, it sends a message to a Slack channel.
Then it's a race to book the table.
The CRON part of the script is just a GitHub Action with a cron trigger.Github Source