mirror of
https://github.com/Luzifer/tinyirc.git
synced 2024-12-23 03:51:18 +00:00
Add script example
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
789fe58648
commit
d655dc52fc
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
@ -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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue