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

19
LINES

< > BotCompany Repo | #1001546 // Echo Bot (web chat)

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

Libraryless. Click here for Pure Java version (470L/4K/12K).

1  
!747
2  
!pcall {
3  
4  
m {
5  
  static S myName = "Echo Bot";
6  
  static int delay = 5000;
7  
  
8  
  p {
9  
    while (true) {
10  
      pcall { // make sure we stay runnning if connection fails or error
11  
        for (ChatLine l : suckWebChat(myName)) {
12  
          if (l.isBot) continue;
13  
          sayInWebChat(myName, "Yeah right... " + l.text);
14  
        }
15  
      }
16  
      sleep(delay);
17  
    }
18  
  }
19  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001546
Snippet name: Echo Bot (web chat)
Eternal ID of this version: #1001546/1
Text MD5: 58b8c7873ea9a77bbea19566099b78d2
Transpilation MD5: a54d71642b079a06a17911516a9ed87b
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-07 17:50:02
Source code size: 387 bytes / 19 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 662 / 680
Referenced in: [show references]