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

8
LINES

< > BotCompany Repo | #1022523 // gazelle_contextToMsgID

JavaX fragment (include)

static long gazelle_contextToMsgID(S s) {
  new Matches m;
  if (startsWith(s, "discord msg ", m))
    ret parseLong(m.rest());
  if (startsWith(s, "slack ", m))
    ret parseLong(m.rest().replace(".", ""));
  ret 0;
}

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: #1022523
Snippet name: gazelle_contextToMsgID
Eternal ID of this version: #1022523/1
Text MD5: e8cab9dc89829d66423cf2dabc70dbbd
Author: stefan
Category: javax / gazelle
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-20 11:06:05
Source code size: 225 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 252 / 284
Referenced in: [show references]