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

13
LINES

< > BotCompany Repo | #1022200 // gazelle_allPossibleAnswersGivenToHumans

JavaX fragment (include)

static LPair<GazelleLine> gazelle_allPossibleAnswersGivenToHumans(O... _) {
  int maxDelay = optPar maxDelay(_, 10000); // between question and answer
  new LPair<GazelleLine> out;
  for (long channelID : dm_discord_allChannelIDs()) {
    L<GazelleLine> l = dm_discord_linesInChannel(channelID);
    for (Pair<GazelleLine> p : overlappingPairs(l)) {
      continue unless !p.a.bot && p.b.bot;
      continue unless p.b.timestamp <= p.a.timestamp+maxDelay;
      out.add(p);
    }
  }
  ret out;
}

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: 171 / 225
Version history: 2 change(s)
Referenced in: [show references]