adding a wait time before starting the rss feeds
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user