summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2019-05-26 01:05:09 +0000
committerepoch <epoch@hack.thebackupbox.net>2019-05-26 01:05:09 +0000
commitfff6473e8d30977b5ff1602623aa8b8fce7a6ebc (patch)
treef444172e22e96928a6083f5cba8c379ddbd47505 /examples
parent4dedc3360e27b06393fc3ff326aa1d09b60ace0b (diff)
downloadlibidc-fff6473e8d30977b5ff1602623aa8b8fce7a6ebc.tar.gz
libidc-fff6473e8d30977b5ff1602623aa8b8fce7a6ebc.zip
added example usage of ircify as a rot13 bot
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/rot13.sh3
-rwxr-xr-xexamples/rotbot4
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'