static LL<GazelleLine> gazelle_monologues(O... _) {
int minLength = optPar minLength(_, 2);
int maxDelay = optPar maxDelay(_, 5000);
new LL<GazelleLine> out;
for (long channelID : dm_discord_allChannelIDs()) {
L<GazelleLine> l = dm_discord_linesInChannel(channelID);
for i over l: {
int j = i+1;
if (!l.get(i).bot) continue;
while (j < l(l) && l.get(j).bot && l.get(j).timestamp <= l.get(j-1).timestamp+maxDelay) ++j;
if (j-i >= minLength)
out.add(cloneSubList(l, i, j));
i = j-1;
}
}
ret out;
}download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
| Snippet ID: | #1022188 |
| Snippet name: | gazelle_monologues |
| Eternal ID of this version: | #1022188/10 |
| Text MD5: | 3de03f56cec8066e27dafb6c9d934cf6 |
| Author: | stefan |
| Category: | javax / gazelle |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-10 15:14:00 |
| Source code size: | 573 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 727 / 755 |
| Version history: | 9 change(s) |
| Referenced in: | [show references] |