Libraryless. Click here for Pure Java version (1249L/9K/31K).
// Talk Bot just LOVES to communicate. // v2 can... store stuff. !747 m { static S computerID = getMyComputerID(); static S i; static O object; p { i = "A Talk Bot On Computer " + computerID + "."; makeAndroid(i); } static synchronized S answer(S s) { if (match3("who are you?", s)) return i; if (match3("what is the object?", s)) return structure(object); if (match3("suck the chat", s)) { L<S> lines = getChatHistory(); setObject(lines); return "ok - I'm having " + lines.size() + " line(s)."; } return "hm."; } static void setObject(O o) { object = o; saveLocally("object"); } }
Began life as a copy of #1001182
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001186 |
Snippet name: | Talk Bot 2 |
Eternal ID of this version: | #1001186/1 |
Text MD5: | 7eb211f1b72c39c3879905ef1028467d |
Transpilation MD5: | c631059cb706a201d288115e8b57c584 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-28 20:28:22 |
Source code size: | 708 bytes / 33 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 635 / 663 |
Referenced in: | [show references] |