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

17
LINES

< > BotCompany Repo | #1001368 // hyperMove (jump between two machines)

JavaX fragment (include)

static void hyperMove(S machine1, S machine2) ctex {
  S botID = formatSnippetID(getProgramID());

  S destMachine = getComputerID().equals(machine2) ? machine1 : machine2;
  print("Hyper-Move: Jumping to " + destMachine + "...");
  
  File zipPath = new File(getProgramDir(), botID + ".zip");
  boolean hasData = zipBot(botID, zipPath);
  
  S title = "Data zip of " + botID + " on " + computerID() + " at " + now();
  S gummipw = getProgramID() + "-hypermove";
  S dataID = hasData ? uploadDataSuperHigh(gummipw, title, zipPath) : "#1001471" /* no data */;
  
  sendToRemoteBot("Identity Manager", format3("* is now in state * with data * to machine *", botID, "moving", dataID, destMachine));
  
  print("\nDone. Data ID: " + dataID);
}

Author comment

Began life as a copy of #1001351

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001368
Snippet name: hyperMove (jump between two machines)
Eternal ID of this version: #1001368/1
Text MD5: dbbb4350963c4c01b23ee391003b8720
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-17 14:40:35
Source code size: 755 bytes / 17 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 543 / 792
Referenced in: [show references]