RSS mirror now posts username per-request of ben
This commit is contained in:
parent
d81c73e401
commit
1829f7a884
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue