adding a wait time before starting the rss feeds

This commit is contained in:
Logan Cusano
2023-03-11 16:41:26 -05:00
parent 9a710c0785
commit a64fe6a669

View File

@@ -14,6 +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));
log.INFO("Starting RSS Controller");
await libCore.updateFeeds(this.client);
while(true){
@@ -27,4 +29,4 @@ exports.RSSController = class RSSController {
libCore.updateFeeds(this.client)
return;
}
}
}