1 | static S sendToBotQuietly(int port, S text, O... args) { |
2 | ret sendToBotQuietly(String.valueOf(port), text, args); |
3 | } |
4 | |
5 | static S sendToBotQuietly(S bot, S text, O... args) { |
6 | text = format3(text, args); |
7 | |
8 | temp DialogIO channel = findBot(bot); |
9 | if (channel == null) |
10 | fail(quote(bot) + " not found"); |
11 | try { |
12 | channel.readLine(); |
13 | channel.sendLine(text); |
14 | return channel.readLine(); |
15 | } catch (Throwable e) { |
16 | e.printStackTrace(); |
17 | return null; |
18 | } |
19 | } |
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: | 635 / 847 |
Version history: | 1 change(s) |
Referenced in: | [show references] |