From d655dc52fceeb6ea0fa040055c41416eb542b7ba Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 12 Apr 2021 18:33:12 +0200 Subject: [PATCH] Add script example Signed-off-by: Knut Ahlers --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index d134d8f..152e7fa 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,19 @@ USER=tezrian # echo "PRIVMSG #tezrian :Test" | envrun tinyirc :tezrian!tezrian@tezrian.tmi.twitch.tv JOIN #tezrian ``` + +More complex example: + +```bash +#!/bin/bash +set -euo pipefail + +{ + + for i in $(seq 1 5); do + echo "PRIVMSG #tezrian :Counter: $i" + sleep 5 + done + +} | envrun ./tinyirc +```