Working RSS Feeds
- Need to get worker in the background to update the sources
This commit is contained in:
@@ -20,14 +20,13 @@ module.exports = {
|
||||
var title = interaction.options.getString("title");
|
||||
|
||||
libCore.deleteSource(title, (err, result) => {
|
||||
console.log("Result from removing entry", result);
|
||||
log.DEBUG("Result from removing entry", result);
|
||||
|
||||
if (result) {
|
||||
interaction.reply(`Removing ${title} from the list of RSS sources`);
|
||||
} else {
|
||||
interaction.reply(`${title} does not exist in the list of RSS sources`);
|
||||
}
|
||||
libCore.loadFeeds();
|
||||
});
|
||||
}catch(err){
|
||||
log.ERROR(err)
|
||||
|
||||
Reference in New Issue
Block a user