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

1  
static L<S> sendToAll(S botName, S line, Object... args) {
2  
  new L<S> answers;
3  
  
4  
  line = format3(line, args);
5  
  
6  
  for (DialogIO io : talkToAll_full(botName)) {
7  
    temp io;
8  
    print(": " + dropAfterLastSlash(io.readLine()));
9  
    answers.add(io.askLoudly(line));
10  
  }
11  
12  
  ret answers;
13  
}
14  
15  
static L<S> sendToAll(S line) {
16  
  ret sendToAll("", line);
17  
}

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: #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: 736 / 1000
Version history: 6 change(s)
Referenced in: [show references]