April 18, 20178 yr I know how to grab login username, and bot account name, but how do I grab the login email field?
April 18, 20178 yr Author 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?
April 18, 20178 yr 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
Create an account or sign in to comment