From 1829f7a884d6a61c0329f66b6875f91a06331c66 Mon Sep 17 00:00:00 2001 From: aewens Date: Thu, 6 Sep 2018 12:35:46 -0400 Subject: [PATCH] RSS mirror now posts username per-request of ben --- tasks/rss.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/rss.js b/tasks/rss.js index becbac5..ac92576 100644 --- a/tasks/rss.js +++ b/tasks/rss.js @@ -45,7 +45,8 @@ module.exports = class RSS { this.memory.known.push(item.guid); const use = item[this.use].replace(/(<\/?[^>]+>)|\\n/g, ""); - const post = `${use} <${item.guid}>`; + const user = item.author.split("@")[0]; + const post = `${use} (posted by ${user}) <${item.guid}>`; const response = `[${this.alias}] ${post}`; this.channels.forEach((channel) => { this.client.say(channel, response);