RSS mirror now posts username per-request of ben

This commit is contained in:
aewens 2018-09-06 12:35:46 -04:00
parent d81c73e401
commit 1829f7a884
1 changed files with 2 additions and 1 deletions

View File

@ -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);