Libraryless. Click here for Pure Java version (1133L/8K/26K).
1 | !747 |
2 | !pcall { |
3 | |
4 | m { |
5 | static Class receivingBot; |
6 | static int delay = 10000; |
7 | |
8 | p { |
9 | while (true) { |
10 | pcall { doIt(); } |
11 | sleep(delay); |
12 | } |
13 | } |
14 | |
15 | static void doIt() { |
16 | S answer = sendToRemoteBot("Identity Manager", format3("Who is moving to * (full state)", getComputerID())); |
17 | print(answer); |
18 | |
19 | for (DynamicObject state : (L<DynamicObject>) unstructure(answer)) { |
20 | print("State: " + structure(state)); |
21 | |
22 | S botID = cast state.fieldValues.get("id"); |
23 | S dataID = cast state.fieldValues.get("dataID"); |
24 | |
25 | if (receivingBot == null) |
26 | receivingBot = hotwire("#1001337"); |
27 | |
28 | answer = (S) call(receivingBot, "doIt", botID, dataID); |
29 | print(answer); |
30 | if (!match3("All done.", answer)) |
31 | continue; |
32 | |
33 | print(sendToRemoteBot("Identity Manager", format3("* is now in state *", botID, "residing"))); |
34 | } |
35 | } |
36 | } |
Began life as a copy of #1001349
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dhtvkmknsjym, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001357 |
Snippet name: | Accept all incoming bots (seems a little brave ^^) |
Eternal ID of this version: | #1001357/1 |
Text MD5: | ecbbce42d9a9b0bef24b487b421e3bdb |
Transpilation MD5: | 182e03b1a930f34978f3e44377157ce9 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-13 16:56:41 |
Source code size: | 938 bytes / 36 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 754 / 804 |
Referenced in: | [show references] |