Libraryless. Click here for Pure Java version (4568L/30K/102K).
!7 p { bot(); grab(0); } svoid grab(int a) { while licensed { S s = loadPage("http://ai1.lol/1008998/raw/incremental?json=1&a=" + a); if (empty(trim(s))) { print("Re-polling."); continue; } print(javaTokWordWrap(s)); Map map = safeUnstructMap(s); int n = getInt(map, 'n); print("n=" + n); L msgs = cast get(map, 'msgs); print("Msgs: " + l(msgs)); a = n; } } answer { try answer yn(postToStefansChat(s)); }
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: | 525 / 691 |
Version history: | 11 change(s) |
Referenced in: | #1009193 - stefansChat_onLine #1009194 - Stefan's Chat: First Bot [WORKS] |