15 lines
277 B
Bash
15 lines
277 B
Bash
|
#!/usr/bin/env ash
|
||
|
|
||
|
. /home/zgrep/offtopiabday/happybot/common.sh
|
||
|
|
||
|
esc() { echo -n '/s '; cat -; }
|
||
|
|
||
|
irc | while read -r n m; do
|
||
|
if reg '^[o][kK]: ?(.*)' "$m"; then
|
||
|
var "$(m 1)";
|
||
|
fi;
|
||
|
done | ok/ircrepl.js | while read -r l; do
|
||
|
var "$l" | zwsp | esc | say;
|
||
|
sleep 0.2;
|
||
|
done;
|