Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. public void onStart() {
  2.         new botGui().setVisible(true);
  3.         super.onStart();
  4.  
  5.  
  6.         JsonObject accountsJsonObject = fromFileToJsonObject("C:\\Users\\guilh\\Documents\\RSPeer\\scripts\\configAccounts.json");
  7.         JsonArray accountsArrayJO = accountsJsonObject.getAsJsonArray("accounts");
  8.         JsonObject accountJO= accountsArrayJO.get(1).getAsJsonObject();
  9.  
  10.         String loginCred = accountJO.get("login").getAsString();
  11.         String passwordCred = accountJO.get("password").getAsString();
  12.         Log.fine("Starting Bot with bot: ");
  13.         Log.fine(loginCred);
  14.         Log.fine(passwordCred);
  15.  
  16.         Login.enterCredentials(loginCred,passwordCred);
  17.  
  18.  
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement