From f551fbcd634b7ac9cf0e9aa556f9f150a7595bbc Mon Sep 17 00:00:00 2001 From: John Facey Date: Thu, 23 Dec 2021 15:23:11 -0600 Subject: [PATCH] adjusting sources --- commands/get.js | 4 ++-- commands/sources.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/get.js b/commands/get.js index f626874..f3873ad 100644 --- a/commands/get.js +++ b/commands/get.js @@ -10,9 +10,9 @@ module.exports = { return; } var search = args[0]; - + var catName = "All"; var feedArray = libFlayer.getFeeds(); - message.reply(`Retrieving: [Link](${feedArray[search].link})`); + message.reply(`Retrieving: [${catName}] (${feedArray[search].link})`); } }; \ No newline at end of file diff --git a/commands/sources.js b/commands/sources.js index fe399e5..111f0bb 100644 --- a/commands/sources.js +++ b/commands/sources.js @@ -6,9 +6,11 @@ module.exports = { execute(message, args) { var sourceArray = libFlayer.getSources(); + var sourceString = ""; sourceArray.forEach(source => { - message.reply(`[${source.title}](${source.link})`); + sourceString +=`[${source.title}](${source.link}) `; }); + message.reply(sourceString); } }; \ No newline at end of file