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

15
LINES

< > BotCompany Repo | #1002994 // Is * a typical bot id

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (988L/7K/22K).

!752

answer {
  if (!tb()) null;
  
  if "is * a typical bot id"
    ret yn(isTypicalBotID(m.unq(0)));
}

static boolean isTypicalBotID(S s) {
  if (!isInteger(s)) ret false;
  if (eq(l(s), 4)) ret true;
  if (eq(l(s), 7) && s.startsWith("100")) ret true;
  ret false;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002994
Snippet name: Is * a typical bot id
Eternal ID of this version: #1002994/1
Text MD5: b8abe1f941746cea7c85ed26e6724f2b
Transpilation MD5: bb178026dec920e021f79730ccd96777
Author: stefan
Category: eleu
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-15 17:55:37
Source code size: 285 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 728 / 778
Referenced in: [show references]