enwnbot

Converts MediaWiki [[links]] and {{templates}} to links on IRC
git clone http://git.hanabi.in/repos/enwnbot.git
Log | Files | Refs | README | LICENSE

commit e6d45e19a80f5b99171fedc5057b71958635ae89
parent 66da489988d9ab526d7e91506b2ce9e2b9132b5d
Author: Agastya Chandrakant <acagastya@outlook.com>
Date:   Mon,  1 Jun 2020 05:31:14 +0530

announce titles in RQ command

Diffstat:
Mirc.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/irc.js b/irc.js @@ -57,9 +57,10 @@ async function announceRQ(sender, channel) { channel, `${list.length} articles to review, ${sender}. They are:` ); - const urls = list.map(({ title }) => fullUrl(title)); + const titles = list.map(({ title }) => title); + const urls = titles.map(fullUrl); client.say(channel, '(Hold on a sec... Shortening the URLs.)'); - sayShortUrls(urls, channel); + sayShortUrls(urls, channel, titles); } } }