Code: Select all
#!/bin/sh
/path/to/pisg --silent
time="`tail /path/to/generated/webpage/index.html -n 5 | grep -i stats | tr '[:upper:]' '[:lower:]'`"
#This is for the bot-announce
( echo ChangeMeToBotOwner
sleep 1
echo ChangeMeToPassword
sleep 1
echo ".say #KOD A new day is upon us. #KOD channel-$time. Please visit URL"
sleep 1
echo ".q" ) | telnet localhost 6456
thanks