irc-bot/bot

15 lines
283 B
Plaintext
Raw Normal View History

2011-01-07 13:03:16 -07:00
#! /bin/sh
nickname=$1; export nickname
2011-01-07 15:50:36 -07:00
(
# UCSPI wants input on FD 7, and sets $PROTO
[ -n "$PROTO" ] && exec 1>&7
echo "NICK $1"
echo "USER $1 $1 $1 :I'm a little printf, short and stdout."
)
2011-01-28 13:09:55 -07:00
mkfifo -m 0600 $1.fifo
exec ./dispatch -f $1.fifo ./irc ./$1-handler