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

26
LINES

< > BotCompany Repo | #1002920 - Multi Web Chat Bot

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

Libraryless. Click here for Pure Java version (2135L/14K/47K).

!752

!include #1002900 // Web Chat API - chat.tinybrain.de

static L<S> botIDs = splitWords("#1002907 #1002919");

static new L bots;

p {
  for (S botID : botIDs) pcall {
    bots.add(hotwireDependent(botID));
  }
  print("Loaded " + l(bots) + "/" + l(botIDs) + " web bots");
  for (O bot : bots) {
    set(bot, "externalSucker", mc());
    callMain(bot);
  }
}

static L getNewMessages(long lastID) {
  suckChat();
  L l = msgsFrom(lastID);
  if (nempty(l))
    print("Distributing " + n(l(l), "new message"));
  ret l;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002920
Snippet name: Multi Web Chat Bot
Eternal ID of this version: #1002920/1
Text MD5: a2939eb4e825ecf2a7722088688c81ef
Transpilation MD5: d7efb895af2a09243e900755d0787a92
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-05 23:20:19
Source code size: 549 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 464 / 565
Referenced in: [show references]

Formerly at http://tinybrain.de/1002920 & http://1002920.tinybrain.de