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

17
LINES

< > BotCompany Repo | #1003415 // Pausing Backend

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

Libraryless. Click here for Pure Java version (1228L/8K/27K).

!759

// returns false if done, otherwise calls whenDone later
sbool action(S s, fRunnable whenDone) {
  new Matches m;
  
  if "Bot pauses * sec" {
    f int secs = parseInt(m.unq(0));
    thread "Bot sleeps" {
      sleepSeconds(secs);
      call(whenDone);
    }
    true;
  }
  
  throw fail("unknown command: " + quote(s));
}

Author comment

Began life as a copy of #1003384

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003415
Snippet name: Pausing Backend
Eternal ID of this version: #1003415/1
Text MD5: 8fb2bf9a74c84747bba94005d815f77b
Transpilation MD5: 01af4209107a7f387fcf566f7949f01c
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-02 19:17:09
Source code size: 348 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 620 / 1335
Referenced in: #1003417 - Yo robot!
#1003496 - Test isNewStyleBackend
#1003540 - Yo robot! on Windows Key