Communauté Eggdrop
STATS [résolu] - Version imprimable

+- Communauté Eggdrop (https://forum.eggdrop.fr)
+-- Forum : Eggdrop et TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=8)
+--- Forum : Scripts TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=4)
+--- Sujet : STATS [résolu] (/showthread.php?tid=500)



STATS [résolu] - Babytigrou16 - 28/08/2009

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 ! ><


RE: STATS - fedora - 28/08/2009

ton eggy est il log au botserv pour envoyé sa commande ? a t'il access ?


RE: STATS - Babytigrou16 - 28/08/2009

je vienne de remarquet Razz ! merci Fédora ! désoler je polue pour rien le site .... :/ je regarde pas assez


RE: STATS - fedora - 28/08/2009

mais de rien Smile


RE: STATS [résolu] - heretoc - 29/08/2009

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.