Bonsoir :)
Encore moi :p
mais cette fois c'est ma socket qui me fait tourner en bourrique :s
cette socket est censée ce connecter sur http://neoblaster.free.fr, aller à la page:
/help4bot/index.php?page=statistiques
et dans cette page, elle doit recuperer les statistiques des commandes:
alias h4b.stat {
sockclose h4b
sockopen h4b neoblaster.free.fr 80
}
on *:sockopen:h4b:{
if $sockerr { echo -a Erreur lors de la connexion | halt }
sockwrite -n $sockname GET /help4bot/index.php?page=statistiques HTTP/1.0
sockwrite -n $sockname $crlf
}
on *:sockread:h4b:{
sockread %temp
echo -a %temp
if (<p align="left"><u><b>STATISTIQUES</b></u> isin %temp) {
echo -a Statistique: $h4b(%temp)
}
}
alias h4b {
if (!$1) halt
var %b = $remove($1-,<td height="460" align="center" valign="top">,<p align="left">,STATISTIQUES,:,<br>,<b>,</b>,<u>,Commandes,</u>,<font color="#009900">,<font color="#0066FF">,<font color="#666666">,<font color="#CC3300">)
return %b
}
Merci d'avance ;)