1 | static S sendToLocalBotQuietly(S bot, S text, O... args) { |
2 | text = format3(text, args); |
3 | |
4 | temp DialogIO channel = newFindBot2(bot); |
5 | if (channel == null) |
6 | fail(quote(bot) + " not found"); |
7 | try { |
8 | channel.readLine(); |
9 | channel.sendLine(text); |
10 | S s = channel.readLine(); |
11 | return s; |
12 | } catch (Throwable e) { |
13 | e.printStackTrace(); |
14 | return null; |
15 | } |
16 | } |
17 | |
18 | static S sendToLocalBotQuietly(int port, S text, O... args) { |
19 | text = format3(text, args); |
20 | temp DialogIO channel = talkTo(port); |
21 | try { |
22 | channel.readLine(); |
23 | channel.sendLine(text); |
24 | S s = channel.readLine(); |
25 | return s; |
26 | } catch (Throwable e) { |
27 | e.printStackTrace(); |
28 | return null; |
29 | } |
30 | } |
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: | 507 / 554 |
Version history: | 2 change(s) |
Referenced in: | [show references] |