Hi!
I've got some trouble with the following code;
alias tilbud {
sockclose gmr
sockopen gmr www.playgames.dk 80
}
menu channel {
DagsTilbud
.Start: .timerAnnounce $+ #gamerhuset 0 1800 tilbud
.Stop: .timerAnnounce $+ #gamerhuset off
}
on *:SockOpen:gmr: {
sockwrite -n $sockname GET /playtime.txt HTTP/1.1
sockwrite -n $sockname Host: www.playgames.dk
sockwrite -n $sockname
}
on *:sockread:gmr: {
var %data
sockread -f %data
if (html isin %data) msg #gamerhuset Kig forbi vores sponsors dagstilbud! %data
}
the code works, sometimes. when I start the script, it's like 12 hours later the script actually runs for the first time. I've got help from this forum before to get this script to work, and I've done nothing towards this script on my own.