Working MySQL Storage system

- testing delete
This commit is contained in:
Logan Cusano
2023-02-20 00:20:46 -05:00
parent 18b960231d
commit 1e6d60f4c3
7 changed files with 253 additions and 222 deletions

View File

@@ -13,16 +13,20 @@ module.exports = {
var link = args[1];
var category = args[2];
var result = libFlayer.addSource(title, link, category);
if (result) {
message.reply(`Adding ${title} to the list of RSS sources`);
} else {
message.reply(`${title} already exists in the list of RSS sources`);
}
libFlayer.addSource(title, link, category, (err, result) => {
console.log("Result from adding entry", result);
var sources = libFlayer.getSources();
libFlayer.loadFeeds();
if (result) {
message.reply(`Adding ${title} to the list of RSS sources`);
} else {
message.reply(`${title} already exists in the list of RSS sources`);
}
var sources = libFlayer.getSources();
libFlayer.loadFeeds();
});
} catch (err) {
console.log(err);
message.reply(err.toString());
}
}