mirror of
https://github.com/nealey/irc-bot
synced 2025-01-08 20:30:36 -07:00
16 lines
243 B
Bash
Executable file
16 lines
243 B
Bash
Executable file
#! /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
|
|
$botdir/connect $ircdir/connect-handler $botdir
|
|
sleep 5
|
|
done
|