Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1010819 // stefansChat_readArchive_fullMsgs - same as stefansChat_readArchive?

JavaX fragment (include)

// n = max number of lines to get (from most recent)
static L<ChatMsg> stefansChat_readArchive_fullMsgs(int n) {
  int b = stefansChat_n();
  int a = max(0, b-n);
  L<Map> msgs = (L) safeUnstruct(loadPage("http://ai1.lol/1008998/raw/archive-from-to?a=" + a + "&b=" + b));
  ret mapsToObjects(msgs, ChatMsg);
}

Author comment

Began life as a copy of #1010816

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: #1010819
Snippet name: stefansChat_readArchive_fullMsgs - same as stefansChat_readArchive?
Eternal ID of this version: #1010819/4
Text MD5: a79742e4c1cf3aa36bd8d77988e1987e
Author: stefan
Category: javax / chat
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-18 14:00:43
Source code size: 315 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 502 / 534
Version history: 3 change(s)
Referenced in: [show references]