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

34
LINES

< > BotCompany Repo | #1002591 // Eleu Sister Main for tinybrain.de

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

Libraryless. Click here for Pure Java version (6071L/44K/122K).

!752

// Options for smaller heap
static S vmArgs = "-XX:MaxHeapFreeRatio=20 -XX:MinHeapFreeRatio=10 -XX:+UseG1GC";

// Homepage, Web Auth, Cookies
static L<S> seedBots = litlist("#1002213", "#1002590", "#1002157");

!include #1002576 // Web Serving
!include #1002578 // Eleu Core

static int webServerPort = 8081; // set to 0 for no web serving
static int httpsPort = 0; // set to 0 for no https serving

p {
  renameVM("Bot VM."); // put helper bots in this VM
  
  webInit();
  
  if (webServerPort != 0) pcall {
    serveHttp(webServerPort);
  }
  
  if (httpsPort != 0) pcall {
    File keystore = secretProgramFile(programID(), "keystore.jks");
    S pass = loadSecretTextFileMandatory("keystore-pass").trim();
    serveHttps(httpsPort, keystore, pass);
  }
  
  coreInit();
  
  for (S id : seedBots)
    call(getDispatcher(), "addSeedBot", id);
}

Author comment

Began life as a copy of #1002017

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: #1002591
Snippet name: Eleu Sister Main for tinybrain.de
Eternal ID of this version: #1002591/1
Text MD5: 3fe0ac01d9e4b4a0e5ea53d92ca9dd1f
Transpilation MD5: 2971599e02694d2c3d0b39be22b69a2f
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-07 19:49:52
Source code size: 889 bytes / 34 lines
Pitched / IR pitched: No / No
Views / Downloads: 803 / 1004
Referenced in: [show references]