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

13
LINES

< > BotCompany Repo | #1022200 // gazelle_allPossibleAnswersGivenToHumans

JavaX fragment (include)

1  
static LPair<GazelleLine> gazelle_allPossibleAnswersGivenToHumans(O... _) {
2  
  int maxDelay = optPar maxDelay(_, 10000); // between question and answer
3  
  new LPair<GazelleLine> out;
4  
  for (long channelID : dm_discord_allChannelIDs()) {
5  
    L<GazelleLine> l = dm_discord_linesInChannel(channelID);
6  
    for (Pair<GazelleLine> p : overlappingPairs(l)) {
7  
      continue unless !p.a.bot && p.b.bot;
8  
      continue unless p.b.timestamp <= p.a.timestamp+maxDelay;
9  
      out.add(p);
10  
    }
11  
  }
12  
  ret out;
13  
}

Author comment

Began life as a copy of #1022188

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022200
Snippet name: gazelle_allPossibleAnswersGivenToHumans
Eternal ID of this version: #1022200/3
Text MD5: 852a32b08cc44ec67f460af9f69db4f1
Author: stefan
Category: javax / gazelle
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-11 10:50:43
Source code size: 508 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 236 / 298
Version history: 2 change(s)
Referenced in: [show references]