Libraryless. Click here for Pure Java version (4568L/30K/102K).
1 | !7 |
2 | |
3 | p { |
4 | bot(); |
5 | grab(0); |
6 | } |
7 | |
8 | svoid grab(int a) { |
9 | while licensed { |
10 | S s = loadPage("http://ai1.lol/1008998/raw/incremental?json=1&a=" + a); |
11 | if (empty(trim(s))) { |
12 | print("Re-polling."); |
13 | continue; |
14 | } |
15 | print(javaTokWordWrap(s)); |
16 | Map map = safeUnstructMap(s); |
17 | int n = getInt(map, 'n); |
18 | print("n=" + n); |
19 | L msgs = cast get(map, 'msgs); |
20 | print("Msgs: " + l(msgs)); |
21 | a = n; |
22 | } |
23 | } |
24 | |
25 | answer { |
26 | try answer yn(postToStefansChat(s)); |
27 | } |
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: | #1009191 |
Snippet name: | Poll Stefan's Chat & allow posting on console [WORKS] |
Eternal ID of this version: | #1009191/12 |
Text MD5: | f354b11206fa83e9fcd99382c77daff6 |
Transpilation MD5: | 48b4bc053c525037e7f0bf8484fb10ac |
Author: | stefan |
Category: | javax / chat |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-07-14 17:49:36 |
Source code size: | 496 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 526 / 693 |
Version history: | 11 change(s) |
Referenced in: | [show references] |