diff options
author | epoch <epoch@hack.thebackupbox.net> | 2019-05-26 01:05:09 +0000 |
---|---|---|
committer | epoch <epoch@hack.thebackupbox.net> | 2019-05-26 01:05:09 +0000 |
commit | fff6473e8d30977b5ff1602623aa8b8fce7a6ebc (patch) | |
tree | f444172e22e96928a6083f5cba8c379ddbd47505 | |
parent | 4dedc3360e27b06393fc3ff326aa1d09b60ace0b (diff) | |
download | libidc-fff6473e8d30977b5ff1602623aa8b8fce7a6ebc.tar.gz libidc-fff6473e8d30977b5ff1602623aa8b8fce7a6ebc.zip |
added example usage of ircify as a rot13 bot
-rwxr-xr-x | examples/rot13.sh | 3 | ||||
-rwxr-xr-x | examples/rotbot | 4 |
2 files changed, 7 insertions, 0 deletions
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' |