Menü
Ana sayfa
Portal
Forumlar
Yeni mesajlar
Forumlarda ara
Neler yeni
Featured content
Yeni mesajlar
Yeni profil mesajları
Son aktiviteler
Kullanıcılar
Kayıtlı üyeler
Şu anki ziyaretçiler
Yeni profil mesajları
Profil mesajlarında ara
Giriş yap
Kayıt ol
Neler yeni
Ara
Ara
Sadece başlıkları ara
Kullanıcı:
Menü
Giriş yap
Kayıt ol
Ana sayfa
Forumlar
Genel IRCD (Sunucu, Servis, Botlar, Korumalar)
Eggdrop, NeoStats, BNC
TCL Scriptler
Greetekle.TCL
JavaScript devre dışı. Daha iyi bir deneyim için, önce lütfen tarayıcınızda JavaScript'i etkinleştirin.
Çok eski bir web tarayıcısı kullanıyorsunuz. Bu veya diğer siteleri görüntülemekte sorunlar yaşayabilirsiniz..
Tarayıcınızı güncellemeli veya
alternatif bir tarayıcı
kullanmalısınız.
Konuya cevap cer
Mesaj
<blockquote data-quote="Che" data-source="post: 86" data-attributes="member: 1"><p>[CODE]#Greet Başlangıç</p><p></p><p>bind pub - $sv2(greet) sv2_greet</p><p>proc sv2_greet {nick uhost hand chan text} {</p><p>global botnick sv2</p><p> set r [lindex $sv2(renk) [rand [llength $sv2(renk)]]]</p><p> set first "[lindex $text 0]"</p><p> if {[string match -nocase $sv2(adminc) $chan] || [string match -nocase $sv2(operc) $chan]} {</p><p> if {$first == ""} { putquick "PRIVMSG $chan \026 Kullanım \026 \003$r\002$sv2(greet) <ekle|sil|listele> <#kanal> <mesaj>\002 şeklindedir.\003"; return 0 }</p><p> if {[string match -nocase "ekle" $first]} {</p><p> set knl "[lindex $text 1]"</p><p> set msg "[lrange $text 2 end]"</p><p> if {$knl == ""} {</p><p> putquick "PRIVMSG $chan \003$r\002Kanal\002 belirtmediniz.\003"</p><p> putquick "PRIVMSG $chan \026 Kullanım \026 \003$r\002$sv2(greet) $first <#kanal> <mesaj>\002 şeklindedir.\003"</p><p> return 0</p><p> }</p><p> if {$msg == ""} {</p><p> putquick "PRIVMSG $chan \003$r\002Mesaj\002 belirtmediniz.\003"</p><p> putquick "PRIVMSG $chan \026 Kullanım \026 \003$r\002$sv2(greet) $first $knl <mesaj>\002 şeklindedir.\003"</p><p> return 0</p><p> }</p><p> if {![file exists "$sv2(greetdizin)"]} { file mkdir $sv2(greetdizin) }</p><p> if {![file exists "$sv2(greetdizin)/$nick"]} { file mkdir $sv2(greetdizin)/$nick }</p><p> file delete $sv2(greetdizin)/$nick/$knl.db</p><p> set greet [open "$sv2(greetdizin)/$nick/$knl.db" w]</p><p> regsub -all "{" $msg "" msg</p><p> regsub -all "}" $msg "" msg</p><p> puts $greet "$msg"</p><p> flush $greet</p><p> catch {closer $greet}</p><p> putquick "PRIVMSG $chan \003$r\002$knl\002 kanalı için \002greet mesajı\002 oluşturuldu.\003"</p><p> }</p><p> if {[string match -nocase "sil" $first]} {</p><p> set knl "[lindex $text 1]"</p><p> if {$knl == ""} {</p><p> putquick "PRIVMSG $chan \003$r\002Kanal\002 belirtmediniz.\003"</p><p> putquick "PRIVMSG $chan \026 Kullanım \026 \003$r\002$sv2(greet) $first <#kanal>\002 şeklindedir.\003"</p><p> return 0</p><p> }</p><p> if {![file exists "$sv2(greetdizin)/$nick/$knl.db"]} {</p><p> putquick "PRIVMSG $chan \003$r\002$knl\002 kanalı için \002greet mesajı\002 bulunmamaktadır.\003"</p><p> putquick "PRIVMSG $chan \026 Önemli Uyari \026 \003$r\Büyük/küçük harf duyarlıdır.\003"</p><p> putquick "PRIVMSG $chan \003$r\002$sv2(greet) listele\002 komutu ile listeleyip yazılış haline bakarak tekrar deneyiniz.\003"</p><p> return 0</p><p> }</p><p> file delete $sv2(greetdizin)/$nick/$knl.db</p><p> putquick "PRIVMSG $chan \003$r\002$knl\002 kanalı için \002greet mesajı\002 başarıyla silinmiştir.\003"</p><p> return</p><p> }</p><p> if {[string match -nocase "listele" $first]} {</p><p> set includes [open "|find $sv2(greetdizin)/$nick -name \*.db -print" r]</p><p> set sayac 0</p><p> putquick "PRIVMSG $chan \002"</p><p> putquick "PRIVMSG $chan \026 Greet listesi \026"</p><p> putquick "PRIVMSG $chan :\002"</p><p> while {[gets $includes include] >= 0} {</p><p> incr sayac</p><p> regsub -all "$sv2(greetdizin)/$nick/" $include "" include</p><p> regsub -all ".db" $include "" include</p><p> set input [open "$sv2(greetdizin)/$nick/$include.db" r]</p><p> set lines [split [read $input] \n]</p><p> catch {close $input}</p><p> foreach line $lines {</p><p> if {$line != ""} {</p><p> putquick "PRIVMSG $chan :\002$sayac.\002 $include: $line"</p><p> }</p><p> }</p><p> }</p><p> if {$sayac == 0} { putquick "PRIVMSG $chan \026 HATA \026 \003$r\002Greet\002 listesinde hiç kayıt bulunamadı.\003" }</p><p> if {$includes == 0} { putquick "PRIVMSG $chan \026 HATA \026 \003$r\002Greet\002 listesinde hiç kayıt bulunamadı.\003" }</p><p> putquick "PRIVMSG $chan \002"</p><p> putquick "PRIVMSG $chan \003$r\Silmek için \002$sv2(greet) sil <#kanal>\002 komutunu kullanabilirsiniz.\003"</p><p> putquick "PRIVMSG $chan \002"</p><p> putquick "PRIVMSG $chan :\026 Greet listesinin sonu \026"</p><p> putquick "PRIVMSG $chan \002"</p><p> close $includes</p><p> }</p><p> }</p><p>}</p><p></p><p>bind join - * sv2_greetmsg</p><p>proc sv2_greetmsg {nick uhost hand chan} {</p><p>global botnick sv2</p><p> if {![file exists "$sv2(greetdizin)/$nick"]} { return 0 }</p><p> set includes [open "|find $sv2(greetdizin)/$nick -name \*.db -print" r]</p><p> while {[gets $includes include] >= 0} {</p><p> regsub -all "$sv2(greetdizin)/$nick/" $include "" include</p><p> regsub -all ".db" $include "" include</p><p> set input [open "$sv2(greetdizin)/$nick/$include.db" r]</p><p> set lines [split [read $input] \n]</p><p> catch {close $input}</p><p> foreach line $lines {</p><p> if {$line != ""} {</p><p> if {[string match -nocase $include $chan]} {</p><p> putquick "PRIVMSG $chan :$line"</p><p> }</p><p> }</p><p> }</p><p> }</p><p> close $includes</p><p>}</p><p></p><p>#Greet Sonu[/CODE]</p></blockquote><p></p>
[QUOTE="Che, post: 86, member: 1"] [CODE]#Greet Başlangıç bind pub - $sv2(greet) sv2_greet proc sv2_greet {nick uhost hand chan text} { global botnick sv2 set r [lindex $sv2(renk) [rand [llength $sv2(renk)]]] set first "[lindex $text 0]" if {[string match -nocase $sv2(adminc) $chan] || [string match -nocase $sv2(operc) $chan]} { if {$first == ""} { putquick "PRIVMSG $chan \026 Kullanım \026 \003$r\002$sv2(greet) <ekle|sil|listele> <#kanal> <mesaj>\002 şeklindedir.\003"; return 0 } if {[string match -nocase "ekle" $first]} { set knl "[lindex $text 1]" set msg "[lrange $text 2 end]" if {$knl == ""} { putquick "PRIVMSG $chan \003$r\002Kanal\002 belirtmediniz.\003" putquick "PRIVMSG $chan \026 Kullanım \026 \003$r\002$sv2(greet) $first <#kanal> <mesaj>\002 şeklindedir.\003" return 0 } if {$msg == ""} { putquick "PRIVMSG $chan \003$r\002Mesaj\002 belirtmediniz.\003" putquick "PRIVMSG $chan \026 Kullanım \026 \003$r\002$sv2(greet) $first $knl <mesaj>\002 şeklindedir.\003" return 0 } if {![file exists "$sv2(greetdizin)"]} { file mkdir $sv2(greetdizin) } if {![file exists "$sv2(greetdizin)/$nick"]} { file mkdir $sv2(greetdizin)/$nick } file delete $sv2(greetdizin)/$nick/$knl.db set greet [open "$sv2(greetdizin)/$nick/$knl.db" w] regsub -all "{" $msg "" msg regsub -all "}" $msg "" msg puts $greet "$msg" flush $greet catch {closer $greet} putquick "PRIVMSG $chan \003$r\002$knl\002 kanalı için \002greet mesajı\002 oluşturuldu.\003" } if {[string match -nocase "sil" $first]} { set knl "[lindex $text 1]" if {$knl == ""} { putquick "PRIVMSG $chan \003$r\002Kanal\002 belirtmediniz.\003" putquick "PRIVMSG $chan \026 Kullanım \026 \003$r\002$sv2(greet) $first <#kanal>\002 şeklindedir.\003" return 0 } if {![file exists "$sv2(greetdizin)/$nick/$knl.db"]} { putquick "PRIVMSG $chan \003$r\002$knl\002 kanalı için \002greet mesajı\002 bulunmamaktadır.\003" putquick "PRIVMSG $chan \026 Önemli Uyari \026 \003$r\Büyük/küçük harf duyarlıdır.\003" putquick "PRIVMSG $chan \003$r\002$sv2(greet) listele\002 komutu ile listeleyip yazılış haline bakarak tekrar deneyiniz.\003" return 0 } file delete $sv2(greetdizin)/$nick/$knl.db putquick "PRIVMSG $chan \003$r\002$knl\002 kanalı için \002greet mesajı\002 başarıyla silinmiştir.\003" return } if {[string match -nocase "listele" $first]} { set includes [open "|find $sv2(greetdizin)/$nick -name \*.db -print" r] set sayac 0 putquick "PRIVMSG $chan \002" putquick "PRIVMSG $chan \026 Greet listesi \026" putquick "PRIVMSG $chan :\002" while {[gets $includes include] >= 0} { incr sayac regsub -all "$sv2(greetdizin)/$nick/" $include "" include regsub -all ".db" $include "" include set input [open "$sv2(greetdizin)/$nick/$include.db" r] set lines [split [read $input] \n] catch {close $input} foreach line $lines { if {$line != ""} { putquick "PRIVMSG $chan :\002$sayac.\002 $include: $line" } } } if {$sayac == 0} { putquick "PRIVMSG $chan \026 HATA \026 \003$r\002Greet\002 listesinde hiç kayıt bulunamadı.\003" } if {$includes == 0} { putquick "PRIVMSG $chan \026 HATA \026 \003$r\002Greet\002 listesinde hiç kayıt bulunamadı.\003" } putquick "PRIVMSG $chan \002" putquick "PRIVMSG $chan \003$r\Silmek için \002$sv2(greet) sil <#kanal>\002 komutunu kullanabilirsiniz.\003" putquick "PRIVMSG $chan \002" putquick "PRIVMSG $chan :\026 Greet listesinin sonu \026" putquick "PRIVMSG $chan \002" close $includes } } } bind join - * sv2_greetmsg proc sv2_greetmsg {nick uhost hand chan} { global botnick sv2 if {![file exists "$sv2(greetdizin)/$nick"]} { return 0 } set includes [open "|find $sv2(greetdizin)/$nick -name \*.db -print" r] while {[gets $includes include] >= 0} { regsub -all "$sv2(greetdizin)/$nick/" $include "" include regsub -all ".db" $include "" include set input [open "$sv2(greetdizin)/$nick/$include.db" r] set lines [split [read $input] \n] catch {close $input} foreach line $lines { if {$line != ""} { if {[string match -nocase $include $chan]} { putquick "PRIVMSG $chan :$line" } } } } close $includes } #Greet Sonu[/CODE] [/QUOTE]
Adı
İnsan doğrulaması
Cevap yaz
Ana sayfa
Forumlar
Genel IRCD (Sunucu, Servis, Botlar, Korumalar)
Eggdrop, NeoStats, BNC
TCL Scriptler
Greetekle.TCL
Üst