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

16
LINES

< > BotCompany Repo | #1023673 // agi.blue first bot v2 (move random "robots.txt" page to the robots.txt slice, sign post)

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

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

!7

cmodule AgiBlueFirstBot > DynSingleFunctionWithPrintLog {
  transient PKIKeyPair keys;
  
  start { keys = keyPairForProgram(); }
  
  void doIt {
    Map map = optCastTo Map(print(loadJSONPage("http://agi.blue/bot/randompagecontaining?q=robots.txt")));
    if (map == null) ret;
    
    print(postJSONPage("http://agi.blue/bot/postSigned",
      text := pki_signTextIncludingKey(
        jsonEncode(litorderedmap(url := getString url(map), key := "move to", value := "the robot slice")), keys)));
  }
}

Author comment

Began life as a copy of #1023669

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: #1023673
Snippet name: agi.blue first bot v2 (move random "robots.txt" page to the robots.txt slice, sign post)
Eternal ID of this version: #1023673/4
Text MD5: 535184f513e99753167a16c7f188af06
Transpilation MD5: dac34c32625a3b3bc2ae1069d3d9dca0
Author: stefan
Category: javax / agi.blue
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-02 17:36:56
Source code size: 523 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 291 / 418
Version history: 3 change(s)
Referenced in: #1023679 - agi.blue first bot v3 (move ALL "robots.txt" page to the robots.txt slice, sign posts)