refactor all feed related into one function

This commit is contained in:
John Facey
2021-12-24 20:01:41 -06:00
parent c688251a01
commit cbb257dfa5
5 changed files with 44 additions and 43 deletions

View File

@@ -31,7 +31,6 @@ server.all("/",(req, res) => {
function keepAlive() {
server.listen(PORT, () => {
console.log("Keep Alive Server Running");
libFlayer.getConfig();
libFlayer.loadFeeds();
libFlayer.feedArray = libFlayer.getFeeds();
})
@@ -72,7 +71,9 @@ client.on('message', message => {
console.log("Link Flayer Bot Activating");
keepAlive();
client.login(token); //Load Client Discord Token
libFlayer.loadFeeds(); //Load Configured Feeds
libFlayer.loadFeeds();