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

19
LINES

< > BotCompany Repo | #1029986 // Gazelle.rocks Math Bot 1 [unshortened]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (7038L/36K).

1  
!7
2  
3  
cmodule MathBot1 > DynPrintLogAndEnabled {
4  
  switchable S _user;
5  
  switchable S _botToken;
6  
  new Gazelle_GrabPostsLoop grabLoop;
7  
  
8  
  start-thread {
9  
    dm_copyFieldsToObject(grabLoop, "_user", "_botToken", "enabled");
10  
    grabLoop.verbose = true;
11  
    grabLoop.onChange(r change);
12  
    grabLoop.handlePost = post -> {
13  
      temp enter();
14  
      print("Have post: " + sfu(post));
15  
      gazelle_mathBot1_handlePost_2(_user, _botToken, post);
16  
    };
17  
    grabLoop.run();
18  
  }
19  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1029986
Snippet name: Gazelle.rocks Math Bot 1 [unshortened]
Eternal ID of this version: #1029986/13
Text MD5: 13783ce89263c13781f9b5586c56c399
Transpilation MD5: fabd590b3db0ad071361430c4d5ccf95
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-27 11:49:03
Source code size: 492 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 182 / 458
Version history: 12 change(s)
Referenced in: [show references]