1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#! /bin/bash SERVER=${1:-kro.corp} #SERVER=${1:-localhost} PORT=6667 export NICK=shbot export CHANNELS=('#shbot') function shbirth () { echo "NICK $NICK" echo "USER $(whoami) +iw $NICK :$0" for CHANNEL in $CHANNELS do echo "JOIN $CHANNEL" done }