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 749390aea8f27cbf1b1f5dc57ab11b9643fbf98e
parent 7c03847af167284c59d03d6d6969e41ecad6af85
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Tue,  1 Dec 2020 09:12:23 +0530

update failedArticleRegex

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

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