Libraryless. Click here for Pure Java version (1874L/12K/40K).
!752 static S prefix = "[eleu]"; static PersistentMap<S, S> inToOut; p { inToOut = new PersistentMap("inToOut"); noteLast_load(); } synchronized answer { if (neq(getChannel(), "devchannel, #talkingbots")) null; S last = noteLast(s); S in = simplifySentence2(s); // check store prefix s = s.trim(); if (swic(s, prefix)) { S response = dropPrefixIgnoreCase(prefix, s).trim(); S lastIn =simplifySentence2(last); print("puppet save: " + lastIn + ", out=" + response); inToOut.put(lastIn, response); ret response; } S out = inToOut.get(in); print("in=" + in + ", out=" + out); if (nempty(out)) ret out; }
Began life as a copy of #1002967
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment