From 0c25a11c5c1109777936d7936c8073d9c4bf932f Mon Sep 17 00:00:00 2001 From: Kay Marquardt Date: Mon, 17 Apr 2023 13:34:53 +0200 Subject: [PATCH] Update 3_advanced.md --- doc/3_advanced.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/3_advanced.md b/doc/3_advanced.md index 02f8c6a..d9081ea 100644 --- a/doc/3_advanced.md +++ b/doc/3_advanced.md @@ -75,10 +75,10 @@ You must use the function `user_is_allowed` to check if a user has the capabilit ### Interactive Chats Interactive chats are simple Bash scripts, reading user input as TEXT and output TEXT to the user. -**Important**: Interactive scripts run in a pipeline, it's **not possible** to use bashbot functions and variables! +**Important**: Scripts run as seperate programs in a [pipeline](https://www.geeksforgeeks.org/piping-in-unix-or-linux/), it's **not possible** to use bashbot functions and variables! ```bash -user input as TEXT | script reads TEXT | output sent to user as formated TEXT (see below) +mycommands.sh send user input as TEXT | script reads TEXT | bashbot.sh reads output as formated TEXT (see below) ``` To create a new interactive chat script copy `scripts/interactive.sh.clean` to e.g. `scripts/mynewinteractive.sh`, make it executable