enwnbot2

Converts MediaWiki [[links]] and {{templates}} to links, informs important events from wiki, handles announces review queue, and under review, and handles when they last saw a given user.
git clone http://git.hanabi.in/repos/enwnbot2.git
Log | Files | Refs | README | LICENSE

commit d38ad4184a5811b92177d9fdb12f8c550536b485
parent 749390aea8f27cbf1b1f5dc57ab11b9643fbf98e
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Wed,  2 Dec 2020 23:53:32 +0530

Avoid crashing when tagging {{speedy}}

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

diff --git a/utils.js b/utils.js @@ -100,8 +100,9 @@ function streamMessage(event) { } case "Disputed": { const failedArticleRegex = /^\[\[:Talk:([^\]\]]*)\]\]/; - const failedArticle = comment.match(failedArticleRegex)[1]; - if (comment.includes("added")) msg = `${user} has not-ready'd the [[${failedArticle}]] article.`; + const maybeMatch = comment.match(failedArticleRegex); + const failedArticle = maybeMatch[1]; + if (comment.includes("added") && failedArticle) msg = `${user} has not-ready'd the [[${failedArticle}]] article.`; break; } case "Abandoned": {