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

22
LINES

< > BotCompany Repo | #1030206 - GazelleAutoBot

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3478L/22K).

abstract sclass GazelleAutoBot {
  // return string (text) or createPost
  abstract O calc();

  long postID;  
  S post; // text of post we are replying to
  S postType; // type of post we are replying to
  
  O createPost(O... _) {
    ret dm_call(dm_current_generic(), "createPost", _);
  }
  
  GazellePost getPost(long postID) {
    ret (GazellePost) quickImport(dm_call(dm_current_generic(), "getPost", postID));
  }
  
  L<GazellePost> repliesTo(GazellePost post) {
    ret (L) dm_callWithImportExport(dm_current_generic(), "repliesTo", post);
  }
  
  bool runOnAutoBotPost() { false; }
}

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1030206
Snippet name: GazelleAutoBot
Eternal ID of this version: #1030206/7
Text MD5: e50683fda545d9170ca47c4f062d5fe8
Transpilation MD5: 31088970b2a6171ca6ee81b5c063408e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-05 17:17:17
Source code size: 617 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 24 / 60
Version history: 6 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1030206 & http://1030206.tinybrain.de