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

12
LINES

< > BotCompany Repo | #1022204 // gazelle_copyReactionsForLineToLineJudgementCRUD

JavaX fragment (include)

svoid gazelle_copyReactionsForLineToLineJudgementCRUD(GazelleLine l) pcall {
  LS posNeg = uniquifyCI(map dm_posNegStringForEmoji(collectStrings emoji(l.reactions)));
  printIndent("posNeg = " + posNeg);
  S judgement = null;
  if (l(posNeg) > 1) judgement = 'mixed;
  else judgement = cic(posNeg, 'positive) ? 'good : 'bad;
  O concept = dm_call(dm_gazelle_lineJudgementCRUD(),
    'uniqConcept,
      context := "discord msg " + l.msgID, 
      source := 'emojis);
  call(concept, '_setField, +judgement);
}

Author comment

Began life as a copy of #1021726

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: #1022204
Snippet name: gazelle_copyReactionsForLineToLineJudgementCRUD
Eternal ID of this version: #1022204/3
Text MD5: f2bf6431b2ce1aa8a401235c2bc20b43
Author: stefan
Category: javax / discord / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 21:40:08
Source code size: 520 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 214 / 219
Version history: 2 change(s)
Referenced in: [show references]