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).

1  
!7
2  
3  
concept Msg {
4  
  SlackMsg msg;
5  
  S ts;
6  
}
7  
8  
// L<SlackMsg> slackSlurp(S channelID, S token, int limit, S oldest, S latest, boolean inclusive);
9  
p {
10  
  db();
11  
  L<SlackMsg> msgs = slackSlurp("C4XAPALRG", celestiaToken(), 1000, null, null, true);
12  
  for (SlackMsg msg : msgs) {
13  
    S ts = msg.ts;
14  
    Msg m = findConcept(Msg, +ts);
15  
    if (m == null) {
16  
      print("NEW: " + struct(msg));
17  
      cset(uniq(Msg, +ts), +msg);
18  
    }
19  
  }
20  
}

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: 469 / 726
Version history: 4 change(s)
Referenced in: [show references]