Hllo iam been tired alot to search after i am failed i am here to ask you guys help me please
i need a TCl which works for me:
When i am in Channel #xyz and i have there 4 Eggdrops there so by one command of me !join #zzzz all 4 shuold join there.
and so own for Part !part #zzz and all do part
it shuold work only for Owner and if possile put !say nick hello or !notice nick Hello
proc addchannel { from cmd text } {
set text [split $text]
set chan [lindex $text 0]
channel add $chan
}
proc remchannel { from cmd text } {
set text [split $text]
set chan [lindex $text 0]
channel remove $chan
}
try to build something around it.
//edit:
{ from cmd text } is for bind bot
use
{ nick uhost handle chan text }
for bind pub to make eggdrops get info from channels
bind pub n|n !join pub_do_join
proc pub_do_join {nick host handle channel testes} {
set who [lindex $testes 0]
if {$who == ""} {
putserv "NOTICE $nick :Syntaxe : !join <#channel>"
return 1
}
if {[validchan $who]} {
putserv "NOTICE $nick : Je suis déjà sur $who."
return 1
}
channel add $who
set owna [nick2hand $nick $channel]
putserv "NOTICE $nick :Nouveau chan ajouté : $who."
putserv "PRIVMSG $who :Coucou ! $who a été ajouté à ma liste de chans par $nick."
chattr $owna |+amno $who
return 1
}
bind pub n|n !part pub_do_part
proc pub_do_part {nick host handle channel testes} {
if {$testes == ""} {
putserv "NOTICE $nick :Syntaxe : !part <#channel>"
return 1
}
putserv "PRIVMSG $channel :$testes a été supprimé de ma liste de chans par $nick."
putserv "NOTICE $nick :$testes a été supprimé de ma liste de chans."
channel remove $testes
}