Communauté Eggdrop

Version complète : STATS [résolu]
Vous consultez actuellement la version basse qualité d’un document. Voir la version complète avec le bon formatage.
Yop les gens ... écouter j'ai un petit probléme le code que j'ai fait es fonctionner pour tout les salons mais apart le salon #Sexe d'ou sa vient ... je l'ignore je n'ai aucun message d'erreur ... Alors voila

tcl
bind pub - !stats stats:chan
proc stats:chan { nick host handle chan arg } {
 if ![string compare -nocase $chan "#Zet-Land"] {
putfast "PRIVMSG BotServ say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Zet-Land.html"
}
 if ![string compare -nocase $chan "#Bisexuel"] {
putfast "PRIVMSG BotServ say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Bisexuel.html"
}
 if ![string compare -nocase $chan "#Staff"] {
putfast "PRIVMSG BotServ say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Staff.html"
}
 if ![string compare -nocase $chan "#Aide"] {
putfast "PRIVMSG BotServ say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Aide.html"
}
 if ![string compare -nocase $chan "#Radio"] {
putfast "PRIVMSG BotServ say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Radio.html"
}
 if ![string compare -nocase $chan "#Nuit-Blanche"] {
putfast "PRIVMSG BotServ say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Nuit-Blanche.html"
}
 if ![string compare -nocase $chan "#Gay"] {
putfast "PRIVMSG BotServ say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Gay.html"
}
 if ![string compare -nocase $chan "#Lesbienne"] {
putfast "PRIVMSG BotServ say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Lesbienne.html"
}
 if ![string compare -nocase $chan "#Sexe"] {
putfast "PRIVMSG BotServ say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Sexe.html"
}
if ![string compare -nocase $chan "#Québec"] {
putfast "PRIVMSG BotServ say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Quebec.html"
}
}



Merci de m'aider à savoir ce qui ce passe ! ><
ton eggy est il log au botserv pour envoyé sa commande ? a t'il access ?
je vienne de remarquet Razz ! merci Fédora ! désoler je polue pour rien le site .... :/ je regarde pas assez
mais de rien Smile

heretoc

Il faut arreter d'ajouter des putfast a toutes les sauces ... cela est instable !
Sinon tu pourais rajouter une variable pour le nom du botserv, car pas tous les serveurs utilise les noms de base pour les modules Anope:

tcl
set nombotserv "Botserv"
bind pub - !stats stats:chan
proc stats:chan { nick host handle chan arg } {
global nombotserv
if ![string compare -nocase $chan "#Zet-Land"] {
putquick"PRIVMSG $nombotserv say $chan \00304Voici les Stats \00306$nick \00312http://www.powerserv35.net/~baby16/Zet-Land.html"
.....
}




Ceci est qu'un exemple que je te fait a partire de mon lit, a toi d'essayer mais le principe y est.