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

41
LINES

< > BotCompany Repo | #1002767 // Eleu 4 Desktop

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

Libraryless. Click here for Pure Java version (4137L/29K/93K).

!759

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

// Normal options for desktops
static S vmArgs = "";

// Prolog
static L<S> seedBots = litlist("#1002841", "#1002762");

!include #1002578 // Eleu Core

p {
  Android3 android = new Android3("Eleu 4 Desktop");
  android.responder = new Responder() {
    public S answer(S s, L<S> history) {
      s = dropPrefix("!", s.trim()).trim();
      
      attn.set(true);
      dedicated.set(true);
      userName.set("stefanreich"); // for authing
      //webAuthed.set(true);
      S answer = callStaticAnswerMethod(mc(), s);
      //print("> " + s + " > " + answer);
      ret or(answer, "?");
    }
  };
  
  makeBot(android);
  
  becomeBotVMIfFirst(); // put helper bots in this VM
  
  coreInit();
  for (S id : seedBots)
    call(getDispatcher(), "addSeedBot", id);
    
  print();
  print("Ready for ya!");
  print();
}

Author comment

Began life as a copy of #1002591

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: #1002767
Snippet name: Eleu 4 Desktop
Eternal ID of this version: #1002767/1
Text MD5: 11cab88c1e6b513fa469932a5bb0869f
Transpilation MD5: 2ec28a2812e1d002bf5e53989416b71d
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-03-11 19:48:18
Source code size: 981 bytes / 41 lines
Pitched / IR pitched: No / No
Views / Downloads: 710 / 700
Referenced in: [show references]