Working RSS Feed Manager

- Auto updates feeds
- Sends updates to specified channels
- Needs threading
This commit is contained in:
Logan Cusano
2023-02-25 20:56:01 -05:00
parent d33f1ceccc
commit 3266a1550e
4 changed files with 44 additions and 15 deletions

View File

@@ -8,6 +8,7 @@ var http = require('http');
const fs = require('fs');
require('dotenv').config();
const libCore = require("./libCore");
const { RSSController } = require("./controllers/rssController");
const libUtils = require("./libUtils");
const deployCommands = require("./utilities/deployCommands");
@@ -123,8 +124,9 @@ client.on('ready', () => {
log.DEBUG(`Starting HTTP Server`);
runHTTPServer();
log.DEBUG("Loading new posts");
libCore.updateFeeds(client);
log.DEBUG("Loading new posts");
const rssManager = new RSSController(client);
rssManager.start();
});
// Setup any additional event handlers