Wait for the refresh period before starting RSS feeds

This commit is contained in:
Logan Cusano
2023-03-13 00:07:07 -04:00
parent a7bcf971c4
commit a86e4b2876

View File

@@ -14,8 +14,8 @@ exports.RSSController = class RSSController {
}
async start(){
// Wait 30 seconds for the rest of the bot to start before starting rss feeds
await new Promise(resolve => setTimeout(resolve, 30000));
// Wait for the refresh period before starting rss feeds, so the rest of the bot can start
await new Promise(resolve => setTimeout(resolve, refreshInterval));
log.INFO("Starting RSS Controller");
// Get initial feeds before the starting the infinite loop