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).

1  
!752
2  
3  
// Options for smaller heap
4  
static S vmArgs = "-XX:MaxHeapFreeRatio=20 -XX:MinHeapFreeRatio=10 -XX:+UseG1GC";
5  
6  
// Homepage, Web Auth, Cookies
7  
static L<S> seedBots = litlist("#1002213", "#1002590", "#1002157");
8  
9  
!include #1002576 // Web Serving
10  
!include #1002578 // Eleu Core
11  
12  
static int webServerPort = 8081; // set to 0 for no web serving
13  
static int httpsPort = 0; // set to 0 for no https serving
14  
15  
p {
16  
  renameVM("Bot VM."); // put helper bots in this VM
17  
  
18  
  webInit();
19  
  
20  
  if (webServerPort != 0) pcall {
21  
    serveHttp(webServerPort);
22  
  }
23  
  
24  
  if (httpsPort != 0) pcall {
25  
    File keystore = secretProgramFile(programID(), "keystore.jks");
26  
    S pass = loadSecretTextFileMandatory("keystore-pass").trim();
27  
    serveHttps(httpsPort, keystore, pass);
28  
  }
29  
  
30  
  coreInit();
31  
  
32  
  for (S id : seedBots)
33  
    call(getDispatcher(), "addSeedBot", id);
34  
}

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: 741 / 915
Referenced in: [show references]