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).

!747
!pcall {

m {
  static S myName = "Echo Bot";
  static int delay = 5000;
  
  p {
    while (true) {
      pcall { // make sure we stay runnning if connection fails or error
        for (ChatLine l : suckWebChat(myName)) {
          if (l.isBot) continue;
          sayInWebChat(myName, "Yeah right... " + l.text);
        }
      }
      sleep(delay);
    }
  }
}

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: 597 / 594
Referenced in: [show references]