Jump to content

General CLI Questions


Smuds

Recommended Posts

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?

Link to comment
Share on other sites

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 <3

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 by Explv
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...