Tekil Mesaj gösterimi
Alt 07 Şubat 2011, 13:43   #4
Çevrimdışı
Raw
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: Eggdrop Bota şu işlemi nasıl yaptırırım




eğer Unrealircd kullanıyorsan ve oper girişi yapıldığında global mesaj şeklinde bilgilendirme yapmak istiyorsan aşağıdaki tcl işini görür diye düşünüyorum.

PHP Kod:   Kodu kopyalamak için üzerine çift tıklayın!
bind raw notice oper_giris

proc oper_giris 
{from keyword text} {
 global 
botnick
    
if {[string match -nocase "*is now a network admin*" $text]} {
        
set nick [string range [lindex [split [lindex $text 1":"10 end]
        
set oper [string range [lindex [split [lindex $text 3"]"01 end]
            if {[
string match -nocase $botnick $oper]} { return }
                
putquick "PRIVMSG $nick :\003$r\Kolay gelsin \002$nick\002. Oper girişiniz başarı ile gerçekleşmiştir.\003"
                
putquick "PRIVMSG $nick :\003$r\İyi görevler dilerim.\003"
                
putquick "PRIVMSG OperServ GLOBAL \00304\002$oper\002\00312 şu anda online konumda\00304 \002\[ NetAdmin(N) ]\002\003"
                
return 0
    
}
    if {[
string match -nocase "*is now a server admin*" $text]} {
        
set nick [string range [lindex [split [lindex $text 1":"10 end]
        
set oper [string range [lindex [split [lindex $text 3"]"01 end]
            if {[
string match -nocase $botnick $oper]} { return }
                
putquick "PRIVMSG $nick :\003$r\Kolay gelsin \002$nick\002. Oper girişiniz başarı ile gerçekleşmiştir.\003"
                
putquick "PRIVMSG $nick :\003$r\İyi görevler dilerim.\003"
                
putquick "PRIVMSG OperServ GLOBAL \00304\002$oper\002\00312 şu anda online konumda\00304 \002\[ ServerAdmin(A) ]\002\003"
                
return 0
    
}
    if {[
string match -nocase "*is now a services admin*" $text]} {
        
set nick [string range [lindex [split [lindex $text 1":"10 end]
        
set oper [string range [lindex [split [lindex $text 3"]"01 end]
            if {[
string match -nocase $botnick $oper]} { return }
                
putquick "PRIVMSG $nick :\003$r\Kolay gelsin \002$nick\002. Oper girişiniz başarı ile gerçekleşmiştir.\003"
                
putquick "PRIVMSG $nick :\003$r\İyi görevler dilerim.\003"
                
putquick "PRIVMSG OperServ GLOBAL \00304\002$oper\002\00312 şu anda online konumda\00304 \002\[ ServicesAdmin(a) ]\002\003"
                
return 0
    
}
    if {[
string match -nocase "*is now a co admin*" $text]} {
        
set nick [string range [lindex [split [lindex $text 1":"10 end]
        
set oper [string range [lindex [split [lindex $text 3"]"01 end]
            if {[
string match -nocase $botnick $oper]} { return }
                
putquick "PRIVMSG $nick :\003$r\Kolay gelsin \002$nick\002. Oper girişiniz başarı ile gerçekleşmiştir.\003"
                
putquick "PRIVMSG $nick :\003$r\İyi görevler dilerim.\003"
                
putquick "PRIVMSG OperServ GLOBAL \00304\002$oper\002\00312 şu anda online konumda\00304 \002\[ CoAdmin(C) ]\002\003"
                
return 0
    
}
    if {[
string match -nocase "*is now an oper*" $text]} {
        
set nick [string range [lindex [split [lindex $text 1":"10 end]
        
set oper [string range [lindex [split [lindex $text 3"]"01 end]
            if {[
string match -nocase $botnick $oper]} { return }
                
putquick "PRIVMSG $nick :\003$r\Kolay gelsin \002$nick\002. Oper girişiniz başarı ile gerçekleşmiştir.\003"
                
putquick "PRIVMSG $nick :\003$r\İyi görevler dilerim.\003"
                
putquick "PRIVMSG OperServ GLOBAL \00304\002$oper\002\00312 şu anda online konumda\00304 \002\[ IRCop(O) ]\002\003"
                
return 0
    
}


iyi forumlar.

__________________
ĻêģäĻ Düšűņ īĻĹęğàĻ Yàşà! ~
 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları reklam ver Benimmekan Mobil Sohbet