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).

!7

cmodule MathBot1 > DynPrintLogAndEnabled {
  switchable S _user;
  switchable S _botToken;
  new Gazelle_GrabPostsLoop grabLoop;
  
  start-thread {
    dm_copyFieldsToObject(grabLoop, "_user", "_botToken", "enabled");
    grabLoop.verbose = true;
    grabLoop.onChange(r change);
    grabLoop.handlePost = post -> {
      temp enter();
      print("Have post: " + sfu(post));
      gazelle_mathBot1_handlePost_2(_user, _botToken, post);
    };
    grabLoop.run();
  }
}

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: 243 / 543
Version history: 12 change(s)
Referenced in: [show references]