Download Jar. Libraryless. Click here for Pure Java version (2387L/15K).
!7 html { File pwFile = javaxSecretDir("eezee-password.txt"); S realPass = loadTextFileTrim(pwFile); if (empty(realPass)) ret subBot_serve500("Pls define password: " + pwFile); if (!eq(params.get('_pass), realPass)) ret subBot_serve500("Bad password"); S server = params.get('server); if (empty(server)) ret "No server given"; O eezee = objectWhereIC(vmBus_queryAll('eeZee), serverName := server); if (eezee == null) ret subBot_serve500("eeZee for " + quote(server) + " not found"); S post = params.get('post); long channelID = parseLong(params.get('channel)); if (nempty(post) && channelID != 0) { dm_call(eezee, 'postInChannel, channelID, post); ret "OK, posted"; } //ret "No command given"; ret subBot_serveText(dm_call(eezee, '_actualPrintLog)); }
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: | 325 / 1080 |
Version history: | 8 change(s) |
Referenced in: | [show references] |