connect via TLS

This commit is contained in:
Stefan Hagen 2023-12-24 09:37:22 +01:00
parent 42106d11a6
commit 6a0ee2ac53
1 changed files with 7 additions and 5 deletions

View File

@ -1,9 +1,9 @@
#!/bin/sh
BOTNICK="uugbot2"
BOTNICK="uugbot"
SERVER="irc.uugrn.org"
PORT="6660"
CHANNEL="#bottest"
PORT="6670"
CHANNEL="#uugrn"
BOTDIR="$PWD"
@ -183,9 +183,11 @@ cd "$BOTDIR"
# available
echo "connecting."
ii -i $BOTDIR/irc -s $SERVER -p $PORT -n $BOTNICK &
ii -i $BOTDIR/irc -s $SERVER -t -p $PORT -n $BOTNICK &
PID=$!
sleep 1
# wait until the background process is ready
sleep 6
echo "/join $CHANNEL" > $BOTDIR/irc/$SERVER/in
sleep 1
echo "ready."