Update references to libFlayer

This commit is contained in:
Logan Cusano
2023-02-24 20:21:52 -05:00
parent fb9fda1b07
commit aa9ed84bc9
13 changed files with 39 additions and 43 deletions

View File

@@ -24,14 +24,14 @@ const client = new Client({
const PORT = process.env.PORT || 3000;
const express = require("express");
const server = express();
var libFlayer = require("./libFlayer.js");
var libCore = require("./libCore.js");
let linkFlayerMap = [];
server.all("/", (req, res) => {
var htmlOutput = "LinkFlayer Bot is Ready - Sources loading <br />";
var sources = libFlayer.getSources();
var sources = libCore.getSources();
sources.forEach(source => {
htmlOutput += `
<div style='margin-bottom:15px;'>
@@ -56,8 +56,8 @@ function keepAlive() {
server.listen(PORT, () => {
console.log("Keep Alive Server Running");
try {
libFlayer.loadFeeds();
libFlayer.feedArray = libFlayer.getFeeds();
libCore.loadFeeds();
libCore.feedArray = libCore.getFeeds();
} catch (error) {
console.log(error);
}
@@ -78,12 +78,6 @@ for (const file of commandFiles) {
client.commands.set(command.name, command);
}
/*
for (const file of commandFiles) {
const command = require(`./commands/${file}`);
client.commands.set(command.name, command);
}
*/
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
@@ -127,7 +121,7 @@ keepAlive();
client.login(token); //Load Client Discord Token
try {
console.log("Loading initial startup feeds");
libFlayer.loadFeeds();
libCore.loadFeeds();
} catch (error) {
console.log(error);
}