Smuds Posted May 7, 2017 Share Posted May 7, 2017 Preface Never used CLI before, just about to work on it So I know I get the commands from the CLI current table, but how do I get script parameters? For example, what format? Is there a way I can run the script in client and get the parameters from there? Also, is there a way to automatically close down a bot from the command line too? Similarly, is there a way to set preferences in the client (such as breaks for example) through CLI? What does the data tag actually spit out? Quote Link to comment Share on other sites More sharing options...
Magerange Posted May 7, 2017 Share Posted May 7, 2017 Perhaps I could 'push in' a question from my own: If I want to run a local script with CLI, do I have to implement a line of code inside the script? What the line should say? Thank you Quote Link to comment Share on other sites More sharing options...
Explv Posted May 7, 2017 Share Posted May 7, 2017 (edited) 14 minutes ago, Magerange said: Perhaps I could 'push in' a question from my own: If I want to run a local script with CLI, do I have to implement a line of code inside the script? What the line should say? Thank you Only if you want to get the script parameters that the user has set. You can get the script parameters using getParameters() 24 minutes ago, Smuds said: Preface Never used CLI before, just about to work on it So I know I get the commands from the CLI current table, but how do I get script parameters? For example, what format? Is there a way I can run the script in client and get the parameters from there? Also, is there a way to automatically close down a bot from the command line too? Similarly, is there a way to set preferences in the client (such as breaks for example) through CLI? What does the data tag actually spit out? The script parameter format will be set by the script writer. It will likely be on the script thread, if not you will have to ask them. It may be the case the script has no parameters at all, in which case you can just set the script parameters to "none". You cannot set breaks using CLI. Not sure exactly sure what you mean by automatically close down a bot from the command line, do you mean when the script exits, or after x amount of time? Edited May 7, 2017 by Explv 2 Quote Link to comment Share on other sites More sharing options...