Working MySQL Storage system
- testing delete
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user