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

19
LINES

< > BotCompany Repo | #1001781 // sendToBotQuietly

JavaX fragment (include)

static S sendToBotQuietly(int port, S text, O... args) {
  ret sendToBotQuietly(String.valueOf(port), text, args);
}

static S sendToBotQuietly(S bot, S text, O... args) {
  text = format3(text, args);
  
  temp DialogIO channel = findBot(bot);
  if (channel == null)
    fail(quote(bot) + " not found");
  try {
    channel.readLine();
    channel.sendLine(text);
    return channel.readLine();
  } catch (Throwable e) {
    e.printStackTrace();
    return null;
  }
}

Author comment

Began life as a copy of #1001329

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: #1001781
Snippet name: sendToBotQuietly
Eternal ID of this version: #1001781/2
Text MD5: 76e4f87a9786d969238be26fd5106b13
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-13 22:39:33
Source code size: 487 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 633 / 845
Version history: 1 change(s)
Referenced in: [show references]