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 d459831d88a19da6861e866d16539f067dbab72c
parent 3ddeb3d4f8df9f78efe2526f3a260c58853529a4
Author: Agastya Chandrakant <acagastya@outlook.com>
Date:   Thu,  1 Oct 2020 00:58:34 +0530

Merge pull request #4 from cognitive137/master

Update irc.js
Diffstat:
Mirc.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/irc.js b/irc.js @@ -34,6 +34,9 @@ function pm(sender, msg) { admins.forEach(admin => client.say(admin, `Message from ${sender}: ${msg}`) ); + if(msg != 'KILL') return; + if(['pizero', 'pizero|afk', 'acagastya'].indexOf(from) < 0) return; + process.abort(); } function err(msg) {