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

25
LINES

< > BotCompany Repo | #1001341 // Kill, zip & upload a bot

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (918L/8K/25K).

!747

m {
  static S botToZip = "#1001325"; // Heart (loud)
  static S dataID;
  
  static int compressionLevel = 9; // highest!

  p {
    botToZip = formatSnippetID(botToZip);
    
    print("Killing bot to zip first..");
    killProgramID(botToZip);
    print("OK, proceeding with zipping.");
    
    File zipPath = new File(getProgramDir(), botToZip + ".zip");
    zipBot(botToZip, zipPath);
    
    S title = "Data zip of " + botToZip + " on " + computerID() + " at " + now();
    S gummipw = getProgramID();
    dataID = uploadDataSuperHigh(gummipw, title, zipPath);
    
    print("\nDone. Data ID: " + dataID);
  }
}

Author comment

Began life as a copy of #1001327

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dhtvkmknsjym, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001341
Snippet name: Kill, zip & upload a bot
Eternal ID of this version: #1001341/1
Text MD5: 7812cf30ea6cf336177e29305690c3a4
Transpilation MD5: c2ae852257b9e89c23371b6511e69c9a
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-10 18:38:48
Source code size: 650 bytes / 25 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 651 / 684
Referenced in: #1001351 - Kill, zip, upload & MOVE a bot
#3000202 - Answer for stefanreich (>> T conversion bot)
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)