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

20
LINES

< > BotCompany Repo | #1008346 // Slurp buildcoolstuffteam #bot

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (7933L/55K/175K).

!7

concept Msg {
  SlackMsg msg;
  S ts;
}

// L<SlackMsg> slackSlurp(S channelID, S token, int limit, S oldest, S latest, boolean inclusive);
p {
  db();
  L<SlackMsg> msgs = slackSlurp("C4XAPALRG", celestiaToken(), 1000, null, null, true);
  for (SlackMsg msg : msgs) {
    S ts = msg.ts;
    Msg m = findConcept(Msg, +ts);
    if (m == null) {
      print("NEW: " + struct(msg));
      cset(uniq(Msg, +ts), +msg);
    }
  }
}

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: #1008346
Snippet name: Slurp buildcoolstuffteam #bot
Eternal ID of this version: #1008346/5
Text MD5: 0581d21cece776146267bea7c1441bea
Transpilation MD5: f1e126cde5d49f6f44e7c94bf1027f26
Author: stefan
Category: javax / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-09 14:15:37
Source code size: 448 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 575 / 851
Version history: 4 change(s)
Referenced in: #1008353 - Get chat lines