connect via TLS

This commit is contained in:
Stefan Hagen 2023-12-24 09:37:22 +01:00
parent 42106d11a6
commit 6a0ee2ac53

View File

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