From fff6473e8d30977b5ff1602623aa8b8fce7a6ebc Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 26 May 2019 01:05:09 +0000 Subject: added example usage of ircify as a rot13 bot --- examples/rot13.sh | 3 +++ examples/rotbot | 4 ++++ 2 files changed, 7 insertions(+) create mode 100755 examples/rot13.sh create mode 100755 examples/rotbot diff --git a/examples/rot13.sh b/examples/rot13.sh new file mode 100755 index 0000000..33233cf --- /dev/null +++ b/examples/rot13.sh @@ -0,0 +1,3 @@ +#!/bin/sh +grep --line-buffered ^_ \ + | stdbuf -oL tr 'a-z' 'n-za-m' diff --git a/examples/rotbot b/examples/rotbot new file mode 100755 index 0000000..f479a4e --- /dev/null +++ b/examples/rotbot @@ -0,0 +1,4 @@ +#!/bin/sh +export LD_LIBRARY_PATH=. +exec socat ssl:main.lv:6697,verify=0 \ +'exec:ircify rotbot #default '`pwd`'/rot13.sh' -- cgit v1.2.3