Files
lsl-shell/README.md

37 lines
1.3 KiB
Markdown
Raw Normal View History

2020-04-12 23:34:13 +02:00
# lsl-shell
2020-04-19 23:19:23 +02:00
`lsl-shell` provides a simple Python-based shell for interacting with
2020-04-19 23:11:43 +02:00
in-world API endpoints.
2020-04-12 23:34:13 +02:00
2020-04-19 23:19:23 +02:00
**Note**: This project is still in an early development stage. Communication
protocols will likely change.
2020-04-19 23:11:43 +02:00
## Getting started
2020-04-12 23:34:13 +02:00
1. Clone the repository
2020-04-19 23:11:43 +02:00
2. Copy the `endpoint.lsl` script contents and paste it in an in-world script
2020-04-12 23:34:13 +02:00
3. Add the script to a prim
2020-04-19 23:11:43 +02:00
4. Copy the emitted URL
2020-04-12 23:34:13 +02:00
5. Run `python lslsh.py`
6. Enter the URL: `connect https://sim[...].agni.lindenlab.com:12043/cap/[...]`
7. Type `help` for a list of available commands
2020-04-19 23:11:43 +02:00
## Use cases
2020-04-19 23:13:18 +02:00
#### Interacting with other scripts
You can directly interact with other scripts inside the endpoint object.
This primarily happens via link messages. Responses from the scripts
are returned to the shell.
2020-04-19 23:11:43 +02:00
2020-04-19 23:13:18 +02:00
#### Rapid script development
2020-04-19 23:11:43 +02:00
You can save a script and directly communicate with it through the endpoint.
For example, you can work on a mathematical function and receive its output
straight in your terminal.
2020-04-19 23:19:23 +02:00
#### Administrative tasks
2020-04-19 23:11:43 +02:00
For example:
- Kicking and banning avatars
- Retrieving sim usage statistics (which you can then easily process locally)
2020-04-19 23:19:23 +02:00
- Remotely sending sim-wide messages
2020-04-19 23:11:43 +02:00
2020-04-19 23:13:18 +02:00
#### HTTP proxy
2020-04-19 23:11:43 +02:00
It's possible to use the endpoint as a HTTP proxy to visit websites or to
make HTTP calls to other in-world objects.