The bot runs every 30 minutes, and we want to check if a test is scheduled in the next 30 minutes. This is tricky because what if something fails and we miss the window? You can try experimenting with the different times.
Create a helper function that checks against the time in the sheets, to see when is the next test.
Add a logic for when there is no time mentioned (that is if the value is FALSE which indicates is an Election Day)
We can use moment.js library or something similar to check.
The bot runs every 30 minutes, and we want to check if a test is scheduled in the next 30 minutes. This is tricky because what if something fails and we miss the window? You can try experimenting with the different times.
We can use
moment.js
library or something similar to check.