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

21
LINES

< > BotCompany Repo | #1003006 // getTBLog - get log of #talkingbots

JavaX fragment (include)

// it's an L<SlackMsg> (with external class SlackMsg)
static L getTBLog() {
  O slurper = getBot("#1002185");
  L log = cast call(slurper, "getLog", "talkingbots");
  
  // drop messages tagged as "ignore"
  /*
  Map<S, L<S>> tagsByTS = (Map) getFromOtherBot("#1002192", "tagsByTS");
  if (tagsByTS == null) ret log;
  print("has tags map (l=" + l(tagsByTS) + "), example tag: " + tagsByTS.keySet().iterator().next());
  
  new L l;
  for (O o : log) {
    S ts = getString(o, "ts");
    if (ts != null && !contains(tagsByTS.get(ts), "ignore"))
      l.add(o);
  }
  ret l;*/
  
  ret log;
}

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: #1003006
Snippet name: getTBLog - get log of #talkingbots
Eternal ID of this version: #1003006/1
Text MD5: d94cde0c91cb5311a46c9cdf31c14ca0
Author: stefan
Category: eleu
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-17 22:01:24
Source code size: 611 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 654 / 590
Referenced in: [show references]