![]() |
|
nick non register msg - Version imprimable +- Communauté Eggdrop (https://forum.eggdrop.fr) +-- Forum : Eggdrop et scripts (https://forum.eggdrop.fr/forumdisplay.php?fid=8) +--- Forum : Scripts (https://forum.eggdrop.fr/forumdisplay.php?fid=4) +--- Sujet : nick non register msg (/showthread.php?tid=454) |
nick non register msg - cestlemien - 14/07/2009 salut, j'aurait besoin d'aide pour debuter mon code; • J'aimerait que le bot check les joins { #salon1 #salon2 } • Il verifie si le nick est enregistré. • Si oui stop de la proc. • Si non ,message à nick-non-register "blablablabla" • + un envois sur #salonlog qu'un PV à ete envoyé à nick-non-register. Et là,j'ai eu beau chercher,pas de resultat,du coup j'ai del le bout de code commencé. :/ Merci . RE: nick non register msg - BdS - 14/07/2009 Aide: Tu fais un whois sur le nick, tu récupères le raw associé, tu le traites (ne pas comprendre insulter lol) etc etc RE: nick non register msg - cestlemien - 15/07/2009 Re, bon,j'ai test,mais pas concluant :( tcl il compte bien les joins,mais pas de mp envoyé. :/ RE: nick non register msg - Merwin - 15/07/2009 Lorsque que tu /whois une personne, tu reçois une RAW (je ne sais plus laquelle), qui indique "est un pseudo enregistré". Peut importe le texte, c'est le numéro de la raw qui compte. Tu lances le /whois, puis quand tu recois 'End of WHOIS List', qui est aussi une raw, tu regardes si tu as reçu la raw "is registered" ou pas. Tu vois l'idée? RE: nick non register msg - David - 18/07/2009 Code : bind join -|- * vip
proc vip { nick uhost hand chan } {
bind raw - 307 whois_nick
puthelp "whois $nick"
}
proc whois_nick {from keyword arg} {
set pseudo [lindex $arg 1]
set vip [lindex $arg 4]
set sivip "registered"
if {$vip == $sivip } {
putquick "privmsg #tonsalon bonjour $pseudo "
} else {
putquick "privmsg $pseudo inscrivez-vous en tant que VIP sur blablabla"
unbind raw - 307 whois_nick
}
}voila une petite exemple a vous de modifier si il ya un erreur ++ RE: nick non register msg - cestlemien - 14/02/2010 Bonjour, Apres quelques tests infructueux, et quelques tirages de cheveux, celà fonctionne. Citation :Attention si vous utilisez ce code, pensez à le modifier en consequence. tcl RE: nick non register msg - alanfollow - 19/12/2010 Salut, Ou est-il possible de mettre un timer pour attendre avant d'enclencher la proc, car le temps qu'il s'identifie... par exemple 30 secondes après, la proc se lance ? Merci bien de votre aide. RE: nick non register msg - CrazyCat - 19/12/2010 Avec: tcl RE: nick non register msg - alanfollow - 19/12/2010 Bonjour, J'ai cette erreur : Code : (•- 14:42 -•) <(athena> [14:42] Tcl error in script for 'timer3108':
(•- 14:42 -•) <(athena> [14:42] invalid command name "0"
(•- 14:42 -•) <(athena> [14:42] Tcl error in script for 'timer3113':
(•- 14:42 -•) <(athena> [14:42] invalid command name "0"Code : (•- 18:38 -•) <(athena> [18:38] Tcl error [kick:unreg]: can't read "whoised(Manon`OqP)": no such element in array
(•- 18:39 -•) <(athena> [18:39] Tcl error in script for 'timer6048':
(•- 18:39 -•) <(athena> [18:39] invalid command name "0"
(•- 18:45 -•) <(athena> [18:45] Tcl error in script for 'timer6124':
(•- 18:45 -•) <(athena> [18:45] invalid command name "0"
(•- 18:45 -•) <(athena> [18:45] Tcl error in script for 'timer6125':
(•- 18:45 -•) <(athena> [18:45] invalid command name "0"
(•- 18:45 -•) <(athena> [18:45] Tcl error in script for 'timer6126':
(•- 18:45 -•) <(athena> [18:45] invalid command name "0"RE: nick non register msg - CrazyCat - 19/12/2010 C'est quoi ces utimer sur les puthelp ? Quel est leur intérêt ? Et comment doit fonctionner ton TCL avec 2 bind join ? RE: nick non register msg - alanfollow - 19/12/2010 Exact, je n'avais pas fais attention ! Le utimer ne fonctionne toujours pas... la phrase " Tu ne sembles pas être identifié, ou voir enregistré $n." sort directement à l'entrée de $n. Code PHP : set foo "#Loft"
bind join - #Loft foo
proc foo {n u h c} {
utimer 30 [puthelp "whois $n"]
}
bind raw - 311 got311 ;# first WHOIS reply
bind raw - 307 got307 ;# nick has identified (registered)
bind raw - 318 got318 ;# End of /WHOIS list
proc got311 {f k t} {
set n [lindex [split $t] 1]
set ::whoised($n) 0
}
proc got307 {f k t} {
set n [lindex [split $t] 1]
incr ::whoised($n)
}
proc got318 {f k t} {
set n [lindex [split $t] 1]
if {$::whoised($n) == 0} {
putquick "PRIVMSG #Opers : $n ne semble pas être enregistré ou identifié."
puthelp " mode #loft -v $n "
puthelp " privmsg #loft Tu ne sembles pas être identifié, ou voir enregistré $n."
}
}
putlog "©Nick-REgister.tcl"
Code : (•- 22:20 -•) <(athena> [22:20] Tcl error in script for 'timer8862':
(•- 22:20 -•) <(athena> [22:20] invalid command name "0"RE: nick non register msg - alanfollow - 20/12/2010 Un problème avec l'utimer ? |