Faire reagir le bot sur plusieur mot
#6
okep faut que je change
Code :
bind pub - $pstrigger call_talk proc pretalk { target channel } { global pschan psinchan pstrigger if { $psinchan == "1" && $pschan == $channel } { talk $target $channel } if { $psinchan == "2" } { talk $target $channel } if { $psinchan == "1" && $pschan != $channel } { putlog "J'ai détecté un $pstrigger dans $channel mais je ne suis pas configuré pour y envoyer un message." } } proc talk { nick chan } { global pschan pstrigger psanswer psmaniere if { $psmaniere == "notice" } { putserv "notice $nick :$psanswer" } if { $psmaniere == "privmsg" } { putserv "privmsg $nick :$psanswer"} if { $psmaniere == "chan" } { putserv "privmsg $chan :$nick : $psanswer" } if { $psmaniere != "notice" && $psmaniere != "privmsg" && $psmaniere != "chan" } { putlog "Erreur: Aucune bonne manière d'envoi n'est configuré." } else { putlog "Parle script: Envoyé à $nick" } } proc call_talk { nick uhost hand chan arg } { pretalk $nick $chan }

Non ?
Répondre


Messages dans ce sujet
RE: Faire reagir le bot sur plusieur mot - par atis91620 - 28/02/2011, 12:19
RE: Faire reagir le bot sur plusieur mot - par NesCrex - 03/03/2011, 18:59

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
Tchat 100% gratuit - Discutez en toute liberté - Transitionnez vers Linux - Discussions dans le Lauragais - Communauté LGBT respectueuse - soutien aux victimes de cybermalveillance - pour les filles par les filles Le forum pour passer le temps