1 | static S sendToCentralBot(S line, O... args) { |
2 | line = format3(line, args); |
3 | |
4 | //print("Sending to remote bot " + quote(botName) + ": " + quote(shorten(line, 100))); |
5 | |
6 | DialogIO io = talkTo("second.tinybrain.de", 4999); |
7 | S greeting = io.readLine(); |
8 | |
9 | print(">> " + line); |
10 | io.sendLine(line); |
11 | S answer = io.readLine(); |
12 | print ("<< " + answer); |
13 | io.close(); |
14 | return answer; |
15 | } |
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: | 685 / 900 |
Referenced in: | [show references] |