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

15
LINES

< > BotCompany Repo | #1001654 // sendToCentralBot

JavaX fragment (include)

  static S sendToCentralBot(S line, O... args) {
    line = format3(line, args);
    
    //print("Sending to remote bot " + quote(botName) + ": " + quote(shorten(line, 100)));
    
    DialogIO io = talkTo("second.tinybrain.de", 4999);
    S greeting = io.readLine();
    
    print(">> " + line);
    io.sendLine(line);
    S answer = io.readLine();
    print ("<< " + answer);
    io.close();
    return answer;
  }

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: #1001654
Snippet name: sendToCentralBot
Eternal ID of this version: #1001654/1
Text MD5: 10aee790a9816094a9829237ae51500b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-01 12:46:10
Source code size: 432 bytes / 15 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 592 / 805
Referenced in: [show references]