problème très stupide
#7
j'ai tester le code et il fonctionne
Citation :|17:49:05| fedora: !test
|17:49:17| @bOten: fedora ceci est un test après 10secondes

tcl
set SalonAide "#aide"
 
bind pub - !test test_utimer
proc test_utimer { nick host hand chan arg } {
global botnick
if {$arg == ""} {
utimer 10 [list TimerMsg $chan $nick]
return 0
}
}
 
proc TimerMsg {chan nick} {
if {![botisop $chan]} { return 0 }
if {[onchan $nick $chan] && ![isvoice $nick $chan] && ![isop $nick $chan]} {
putserv "privmsg $::SalonAide : $nick ceci est  un test après 10secondes"
}
return 0
}




en faite j'ai juste modifier

tcl
if {$arg != ""} {



par
tcl
if {$arg == ""} {



n'oublie pas de rehash ou restart ton bot Smile

cordialement
[font=Times New Roman]La différence entre Linux et Windows ,c'est que Linux c'est comme une belle fille , il faut l'apprivoiser , la comprendre , la séduire tandis que Windows , c'est comme une prostitué , il faut payer et surtout bien se protéger.[/font]
Répondre Avertir


Messages dans ce sujet
problème très stupide - par or10n - 20/11/2009, 18:54
RE: problème très stupide - par fedora - 21/11/2009, 09:47
RE: problème très stupide - par CrazyCat - 21/11/2009, 10:49
RE: problème très stupide - par or10n - 21/11/2009, 13:50
RE: problème très stupide - par fedora - 21/11/2009, 15:27
RE: problème très stupide - par or10n - 21/11/2009, 17:42
RE: problème très stupide - par fedora - 21/11/2009, 18:52
RE: problème très stupide - par or10n - 21/11/2009, 19:29
RE: problème très stupide - par fedora - 21/11/2009, 20:51
RE: problème très stupide - par or10n - 21/11/2009, 21:36
RE: problème très stupide - par fedora - 21/11/2009, 22:34

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté