scape Posted April 18, 2017 Posted April 18, 2017 I know how to grab login username, and bot account name, but how do I grab the login email field?
scape Posted April 18, 2017 Author Posted April 18, 2017 30 minutes ago, Magarac said: Pass it in via Params. Can you give an example on how I would do this with a barebone script?
Magarac Posted April 18, 2017 Posted April 18, 2017 24 minutes ago, scape said: Can you give an example on how I would do this with a barebone script? String userEmail = null String userPass = null @Override public void onStart() throws InterruptedException { userEmail = getParameters().split("-")[0]; userPass = getParameters().split("-")[1]; } In this above case, "-" is the delimiter which you use in your CLI file. e.g. -java -jar "OSBot" -login user:pass -bot userEmail:userPass:0000 -script SCRIPTNAME:userEmail-userName 1