Alrik is a stupid chat bot. No smart algorithms here. Just Math.random(). Lots of room for improvements left.
c.style.display="none";
var d="1 Dude!1 Rainbows and Unicorns!1 You still there?1 I love you!1Cool!1Awesome!1Slick!1Kinda cool1:)1Wtf?1Srsly?1:S1Huh?1That sucks1Do you use JSLint?1You keep minifying your files?1Did you also enter a demo?1I like git, you?1Are you a judge?1WTFJS: Did you know 0.2+0.7==0.9 is false?1WTFJS: typeof NAN //=> number i loled.1{}+[] //=> 0 #WTFJS1{}+{} //=> NAN Huh?1WTFJS: []==[] //=> false yeah, cause two empty arrays differ.".split(1),k=[/yes/gi,/\bno(pe)?\b/gi],x,r=Math.random;
function e(t){b.innerHTML+=t+"<br>"}
e("<h2>Alrik - Annoying Life-form and Random Internet KI</h2>Yo dawg, what's ya name?<form onsubmit=f(this);return!1><input>")
function f(g,t,s){t=g[0].value;s=0|5*r();e("you: "+t);e(d[s+5*(k[0].test(t)?1:k[1].test(t)?2:x?3:4)]+d[0|5*r()]);x=!x}
Yy5zdHlsZS5kaXNwbGF5PSJub25lIjsNCnZhciBkPSIxIER1ZGUhMSBSYWluYm93cyBhbmQgVW5pY29ybnMhMSBZb3Ugc3RpbGwgdGhlcmU/MSBJIGxvdmUgeW91ITFDb29sITFBd2Vzb21lITFTbGljayExS2luZGEgY29vbDE6KTFXdGY/MVNyc2x5PzE6UzFIdWg/MVRoYXQgc3Vja3MxRG8geW91IHVzZSBKU0xpbnQ/MVlvdSBrZWVwIG1pbmlmeWluZyB5b3VyIGZpbGVzPzFEaWQgeW91IGFsc28gZW50ZXIgYSBkZW1vPzFJIGxpa2UgZ2l0LCB5b3U/MUFyZSB5b3UgYSBqdWRnZT8xV1RGSlM6IERpZCB5b3Uga25vdyAwLjIrMC43PT0wLjkgaXMgZmFsc2U/MVdURkpTOiB0eXBlb2YgTkFOIC8vPT4gbnVtYmVyIGkgbG9sZWQuMXt9K1tdIC8vPT4gMCAjV1RGSlMxe30re30gLy89PiBOQU4gSHVoPzFXVEZKUzogW109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