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

14
LINES

< > BotCompany Repo | #1021821 // dm_discord_copyLineToLongAppliedRuleList

JavaX fragment (include)

svoid dm_discord_copyLineToLongAppliedRuleList(long msgID) pcall {
  if (nempty(dm_gazelle_applicationsForMsgID(msgID))) ret;
  try {
    S mrStruct = gazelle_discord_matchedRuleStructForMsgID(msgID);
    if (mrStruct == null) ret; // with print("Not a Gazelle line or legacy");
    printIndent(shorten(mrStruct, 50));
    // TODO: emojis
    dm_gazelle_saveAppliedRuleToLongList(
      matchedRuleStruct := mrStruct,
      context := "discord msg " + msgID);
  } on fail {
    print("Msg ID: " + msgID);
  }
}

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: #1021821
Snippet name: dm_discord_copyLineToLongAppliedRuleList
Eternal ID of this version: #1021821/5
Text MD5: efd8636852459358606f1dc6a2e2a7fd
Author: stefan
Category: javax / discord / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-03 13:30:08
Source code size: 523 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 296 / 316
Version history: 4 change(s)
Referenced in: [show references]