diff --git a/ok/ircrepl.js b/ok/ircrepl.js index 75e8be6..83549d9 100644 --- a/ok/ircrepl.js +++ b/ok/ircrepl.js @@ -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 = ''; diff --git a/ok/LICENSE.txt b/ok/ok-license.txt similarity index 100% rename from ok/LICENSE.txt rename to ok/ok-license.txt diff --git a/ok/readme.txt b/ok/readme.txt index 0a8b83a..20a124f 100644 --- a/ok/readme.txt +++ b/ok/readme.txt @@ -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.