Add script example

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-04-12 18:33:12 +02:00
parent 789fe58648
commit d655dc52fc
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -26,3 +26,19 @@ USER=tezrian
# echo "PRIVMSG #tezrian :Test" | envrun tinyirc # echo "PRIVMSG #tezrian :Test" | envrun tinyirc
:tezrian!tezrian@tezrian.tmi.twitch.tv JOIN #tezrian :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
```