Uses 911K of libraries. Click here for Pure Java version (14559L/89K).
1 | !7 |
2 | |
3 | !include once #1002615 // master() |
4 | |
5 | // Homepage, Talk to Eleu, Web Auth, Cookies |
6 | static L<S> seedBots = litlist("#1003253", "#1002213", "#1002590", "#1002157"); |
7 | |
8 | !include #1002576 // Web Serving |
9 | !include #1002578 // Eleu Core |
10 | !include #1013904 // Eleu web socket |
11 | |
12 | static int[] webServerPorts = {80, 8080}; |
13 | static int[] httpsPorts = {443, 8443}; |
14 | |
15 | cmodule Eleu > DynPrintLog { |
16 | start { |
17 | becomeBotVMIfFirst(); |
18 | webInit(); |
19 | |
20 | eleu_webSocket_init(); |
21 | |
22 | if (nempty(httpsPorts)) pcall { |
23 | File keystore = firstFileThatExists( |
24 | javaxSecretDir("keystore.p12"), |
25 | secretProgramFile(#1002017, "keystore.jks")); |
26 | S pass = loadSecretTextFileMandatory(#1002017, "keystore-pass").trim(); |
27 | //serveHttps(httpsPort, keystore, pass); |
28 | //serveHttpsWithWebsockets(httpsPort, keystore, pass, eleu_webSocket_handler()); |
29 | //serveHttpsWithWebsockets_server.printServes = false; |
30 | serveHttpsWithWebsockets_multiplePorts(keystore, pass, eleu_webSocket_handler(), httpsPorts); |
31 | } |
32 | |
33 | coreInit(); |
34 | |
35 | for (S id : seedBots) |
36 | call(getDispatcher(), "addSeedBot", id); |
37 | |
38 | // TODO |
39 | /*if (hasBot("New Eleu Watch Dog.")) |
40 | print("Have Eleu Watch Dog."); |
41 | else { |
42 | print("Starting Eleu Watch Dog."); |
43 | nohupJavax(#1014075); |
44 | sleepSeconds(5); |
45 | }*/ |
46 | } |
47 | } |
Began life as a copy of #1013896
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022823 |
Snippet name: | Eleutheria Main for butter.botcompany.de as Dyn Module [dev.] |
Eternal ID of this version: | #1022823/4 |
Text MD5: | 5fe1a2940b2bd2edeac50902a3786f6f |
Transpilation MD5: | 68c391924006f491dff64918872b59b0 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-09 11:52:09 |
Source code size: | 1377 bytes / 47 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 321 / 458 |
Version history: | 3 change(s) |
Referenced in: | [show references] |