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

25
LINES

< > BotCompany Repo | #1024081 // eeZee Web Bot [LIVE]

JavaX module (desktop) [tags: butter use-pretranspiled] - homepage

Download Jar. Libraryless. Click here for Pure Java version (2387L/15K).

1  
!7
2  
3  
html {
4  
  File pwFile = javaxSecretDir("eezee-password.txt");
5  
  S realPass = loadTextFileTrim(pwFile);
6  
  if (empty(realPass)) ret subBot_serve500("Pls define password: " + pwFile);
7  
  if (!eq(params.get('_pass), realPass)) ret subBot_serve500("Bad password");
8  
  
9  
  S server = params.get('server);
10  
  if (empty(server)) ret "No server given";
11  
  
12  
  O eezee = objectWhereIC(vmBus_queryAll('eeZee), serverName := server);
13  
  if (eezee == null) ret subBot_serve500("eeZee for " + quote(server) + " not found");
14  
  
15  
  S post = params.get('post);
16  
  long channelID = parseLong(params.get('channel));
17  
  
18  
  if (nempty(post) && channelID != 0) {
19  
    dm_call(eezee, 'postInChannel, channelID, post);
20  
    ret "OK, posted";
21  
  }
22  
  
23  
  //ret "No command given";
24  
  ret subBot_serveText(dm_call(eezee, '_actualPrintLog));
25  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024081
Snippet name: eeZee Web Bot [LIVE]
Eternal ID of this version: #1024081/9
Text MD5: 2b6690749007b793136d800a437b2f31
Transpilation MD5: bc51f3835b7375a233e5d898841928a9
Author: stefan
Category: javax
Type: JavaX module (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-20 14:37:42
Source code size: 827 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 326 / 1081
Version history: 8 change(s)
Referenced in: [show references]