Update references to libFlayer
This commit is contained in:
16
index.js
16
index.js
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user