1 | // it's an L<SlackMsg> (with external class SlackMsg) |
2 | static L getTBLog() {
|
3 | O slurper = getBot("#1002185");
|
4 | L log = cast call(slurper, "getLog", "talkingbots"); |
5 | |
6 | // drop messages tagged as "ignore" |
7 | /* |
8 | Map<S, L<S>> tagsByTS = (Map) getFromOtherBot("#1002192", "tagsByTS");
|
9 | if (tagsByTS == null) ret log; |
10 | print("has tags map (l=" + l(tagsByTS) + "), example tag: " + tagsByTS.keySet().iterator().next());
|
11 | |
12 | new L l; |
13 | for (O o : log) {
|
14 | S ts = getString(o, "ts"); |
15 | if (ts != null && !contains(tagsByTS.get(ts), "ignore")) |
16 | l.add(o); |
17 | } |
18 | ret l;*/ |
19 | |
20 | ret log; |
21 | } |
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: | 1011 / 950 |
| Referenced in: | [show references] |