static S sendToLocalBotQuietly(S bot, S text, O... args) { text = format3(text, args); temp DialogIO channel = newFindBot2(bot); if (channel == null) fail(quote(bot) + " not found"); try { channel.readLine(); channel.sendLine(text); S s = channel.readLine(); return s; } catch (Throwable e) { e.printStackTrace(); return null; } } static S sendToLocalBotQuietly(int port, S text, O... args) { text = format3(text, args); temp DialogIO channel = talkTo(port); try { channel.readLine(); channel.sendLine(text); S s = channel.readLine(); return s; } catch (Throwable e) { e.printStackTrace(); return null; } }
Began life as a copy of #1001329
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004421 |
Snippet name: | sendToLocalBotQuietly |
Eternal ID of this version: | #1004421/3 |
Text MD5: | 3bcdf37d3ca6197dbe774ee04cd81198 |
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:46 |
Source code size: | 713 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 506 / 553 |
Version history: | 2 change(s) |
Referenced in: | [show references] |