Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1001182 // Talk Bot

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (709L/6K/19K).

1  
// Talk Bot just LOVES to communicate.
2  
3  
!747
4  
5  
m {
6  
  static S computerID = getMyComputerID();
7  
  static S i;
8  
  
9  
  p {
10  
    i = "A Talk Bot On Computer " + computerID + ".";
11  
    makeAndroid(i);
12  
  }
13  
  
14  
  static synchronized S answer(S s) {
15  
    if (match3("who are you?", s))
16  
      return i;
17  
    return "hm.";
18  
  }
19  
}

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: #1001182
Snippet name: Talk Bot
Eternal ID of this version: #1001182/1
Text MD5: 4379bad16abf400abf274e7b1719a880
Transpilation MD5: 7f230f1260ec474963498128220819e9
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:15:23
Source code size: 327 bytes / 19 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 521 / 553
Referenced in: [show references]