And thus a happy bot was borne.

This commit is contained in:
zgrep 2018-08-14 17:42:36 -04:00
parent 1c8299c9de
commit ee54a1cdf0
3 changed files with 8 additions and 5 deletions

View File

@ -75,6 +75,8 @@ rl.on('line', function (line) {
process.stdout.write("http://kparc.com/k.txt\n");
} else if (line == "okrc" || line == "rc") {
process.stdout.write("https://zgrep.org/taxreturns/okrc.txt\n");
} else if (line.replace(/\s|;/g, '') == '2+2') {
process.stdout.write("5\n");
} else {
var output = '';
printed = '';

View File

@ -1,5 +1,6 @@
Step 1: Get a copy of https://github.com/johnearnest/ok
Step 2: Append appendoK.js to oK.js
Step 3: Use ircrepl.js with it.
Step 4: ???
Step 5: Be sad.
$ git clone https://github.com/johnearnest/ok.git
$ cd ok
$ cp $HAPPYBOT/ok/* ./
$ cat oK.js appendoK.js > ircoK.js
Now use ircrepl.js for a repl.