irc-bot/run

17 lines
243 B
Plaintext
Raw Normal View History

2011-06-09 21:27:24 -06:00
#! /bin/sh -e
botdir=$1
ircdir=$(dirname $0)
export botdir ircdir
if [ ! -d "$botdir" ]; then
exec 1>&2
echo "Usage: $0 BOTDIRECTORY"
exit 1
fi
while true; do
2011-09-20 09:39:41 -06:00
$botdir/connect $ircdir/connect-handler $botdir
2011-06-09 21:27:24 -06:00
sleep 5
2011-09-20 09:39:41 -06:00
done