bonjour j'essaye de faire un petite code simple et fun mais sa marche pas .pourriez vous m'aidez svp
voila le fautif...........
set boom {
"1"
"2"
"3"
"4"
"5"
"6"
"7"
}
set boom_chan "#delire-land"
bind pub -|- !roulette pub:roulette
proc pub:roulette { nick channel uhost hand arg } {
global boom boom_chan
set teste "[lindex $boom [rand [llength $boom]]]"
if {($teste == 1)&&($boom_chan == "#delire-land")} {
puthelp "privmsg $channel: kick $nick t'aime sa hein ????"
}
if {($teste != 1)&&($boom_chan == "#delire-land")} {
putserv "privmsg $channel: ta la chance $nick tu tombe sur $boom et il est vide"
}
}
c la roulette russe .... merci
cordialement
djdadou