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

18
LINES

< > BotCompany Repo | #1028188 // Discord Audio Watch Dog [restarts bot OS when it hangs]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (6419L/34K).

!7

cmodule AudioWatchDog > DynPrintLog {
  transient bool _startMinimized = true;
  switchable S botName = "Discord Bots OS";
  
  start {
    doEvery(dm_osLoading() ? 10.0 : 0.0, 60.0, r {
      if (!licensed() || dm_shuttingDown()) ret;
      if (hasBot("Watch Dog for " + botName)) {
        // print("Watch Dog running.");
      } else {
        print("Watch Dog not running, starting.");
        nohupJavax(#1028187);
      }
    });
  }
}

Author comment

Began life as a copy of #1019696

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, dpqxeycirhfy, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028188
Snippet name: Discord Audio Watch Dog [restarts bot OS when it hangs]
Eternal ID of this version: #1028188/1
Text MD5: 66112a7896aa16372093c81b6cc57a66
Transpilation MD5: c68a526fb462cf1009af24620e2a34ae
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-25 22:43:57
Source code size: 462 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 992
Referenced in: [show references]