!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);
      }
    });
  }
}