This commit is contained in:
Kay Marquardt 2023-04-17 15:26:36 +02:00 committed by GitHub
parent d157f61cf2
commit d0c3156e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,10 +81,11 @@ and then use `start_proc` function from your bot, it's possible to pass two argu
**Important**: The script runs standalone in a [pipeline](https://www.geeksforgeeks.org/piping-in-unix-or-linux/), it's **not possible** to use bashbot functions and variables! **Important**: The script runs standalone in a [pipeline](https://www.geeksforgeeks.org/piping-in-unix-or-linux/), it's **not possible** to use bashbot functions and variables!
```bash ```bash
mycommands.sh send user input as TEXT | script reads TEXT | bashbot.sh reads output as formated TEXT (see below) commands.sh send user input as TEXT | script reads TEXT | bashbot.sh recieve output as formated TEXT (see below)
``` ```
In case you want to process any other data then message TEXT I recommend to switch to a more advanced bot framework. In bashbot you must extraxt that information in `mycommnds.sh` and insert in message TEXT before it's sent to the script (only recommended for advanced bash experts). In case you want to process any other data then message TEXT, I recommend to switch to a more advanced bot framework.
In Bashbot you are on your own to implement methods for includeíng additional information in message TEXT before message sent to the script (only recommended for advanced bash experts).
#### Example script #### Example script