commit 814e6e91f13ae7674dc3308d79326be2694f1e4b
parent a07755e32287ec6fa89dfeb0c25ca6933481a388
Author: Agastya Chandrakant <acagastya@outlook.com>
Date: Wed, 30 Sep 2020 23:12:56 +0530
fix typo to remove bugs
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
@@ -113,7 +113,7 @@ async function announceUR(sender, channel) {
if (!list.length)
ircClient.say(channel, `No articles are under review, ${sender}.`);
else {
- client.say(
+ ircClient.say(
channel,
`${list.length} articles are under review, ${sender}. They are:`
);
diff --git a/utils.js b/utils.js
@@ -63,7 +63,7 @@ function streamMessage(event) {
let msg = "";
const change = JSON.parse(event.data);
const { comment, title, type, user } = change;
- if (change.wiki == wiki && type == "categirize") {
+ if (change.wiki == wiki && type == "categorize") {
const category = getCategory(title);
const pageRegex = /\[\[:(.*)\]\]/;
const page = comment.match(pageRegex)[1];