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

8
LINES

< > BotCompany Repo | #1022523 // gazelle_contextToMsgID

JavaX fragment (include)

1  
static long gazelle_contextToMsgID(S s) {
2  
  new Matches m;
3  
  if (startsWith(s, "discord msg ", m))
4  
    ret parseLong(m.rest());
5  
  if (startsWith(s, "slack ", m))
6  
    ret parseLong(m.rest().replace(".", ""));
7  
  ret 0;
8  
}

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: 198 / 225
Referenced in: [show references]