Libraryless. Click here for Pure Java version (1249L/9K/31K).
1 | // Talk Bot just LOVES to communicate. |
2 | // v2 can... store stuff. |
3 | |
4 | !747 |
5 | |
6 | m { |
7 | static S computerID = getMyComputerID(); |
8 | static S i; |
9 | static O object; |
10 | |
11 | p { |
12 | i = "A Talk Bot On Computer " + computerID + "."; |
13 | makeAndroid(i); |
14 | } |
15 | |
16 | static synchronized S answer(S s) { |
17 | if (match3("who are you?", s)) |
18 | return i; |
19 | if (match3("what is the object?", s)) |
20 | return structure(object); |
21 | if (match3("suck the chat", s)) { |
22 | L<S> lines = getChatHistory(); |
23 | setObject(lines); |
24 | return "ok - I'm having " + lines.size() + " line(s)."; |
25 | } |
26 | return "hm."; |
27 | } |
28 | |
29 | static void setObject(O o) { |
30 | object = o; |
31 | saveLocally("object"); |
32 | } |
33 | } |
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: | 637 / 667 |
Referenced in: | [show references] |