The bot requests the AP API to get the test calendar data. Since there is no way to filter the data directly from the API, we have to create a function that filters out the old data.
Create a helpers directory.
Create a filter function that checks today's date and filters out old data.
The bot requests the AP API to get the test calendar data. Since there is no way to filter the data directly from the API, we have to create a function that filters out the old data.
helpers
directory.getElexTestData.js
file here