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

17
LINES

< > BotCompany Repo | #1001400 - sendToAll

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (6517L/43K).

static L<S> sendToAll(S botName, S line, Object... args) {
  new L<S> answers;
  
  line = format3(line, args);
  
  for (DialogIO io : talkToAll_full(botName)) {
    temp io;
    print(": " + dropAfterLastSlash(io.readLine()));
    answers.add(io.askLoudly(line));
  }

  ret answers;
}

static L<S> sendToAll(S line) {
  ret sendToAll("", line);
}

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1001400
Snippet name: sendToAll
Eternal ID of this version: #1001400/7
Text MD5: 11b5f418eb39bf4614c6cdfa05a23981
Transpilation MD5: 354702b0a77b658a93f0774df94f387a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-26 23:21:57
Source code size: 365 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 445 / 587
Version history: 6 change(s)
Referenced in: [show references]

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