IRCForumu.Net - Türkiye'nin IRC ve mIRC Kullanıcılarının Buluştuğu Forum muhabbet

 Bugünki Mesajlar  Arama

ircforumu sekershell
bizimkiler sosyalchat


Like Tree1Beğeni(ler)
  • 1 Post By immortaL
Yeni Konu aç Cevapla
 
LinkBack Seçenekler Arama Stil
Alt 30 Haziran 2016, 00:05   #1
Çevrimdışı
Gelme, burası çok derin.

immortaL - ait Kullanıcı Resmi (Avatar)
!duyuruekle & !duyurucikar


Reklam

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
# kullanımı : # hangi kanalda duyuru eklemek -silmek isteniyorsa , # telnet/dcc üzerinden bota .chanset #kanalınız +duyuru # komutuyla kodu aktif etmelisiniz. # belirlenen kanalda op olanlar # duyuru ekleyip silebilir. # !dyrekle duyuruno duyurumsg # !dyrsil duyuruno # bota özelde duyur , duyuru ,dyr demeniz yeterli # /msg botnick dyr ... gibi... setudef flag duyuru bind pub -|- !dyrekle duyuru:ekle bind pub -|- !dyrsil duyuru:sil bind msgm - "*" duyuru:duyur proc duyuru:ekle {nick host hand chan arg} { if {[channel get $chan duyuru] || [isop $nick $chan]} { return } set dzn "duyurular.txt" set dyrno [lindex [split $arg] o] set dyrmsg [join [lrange [split $arg] 1 end]] if {dyrno == ""} { puthelp "notice $nick eksik komut girdiniz.kullanımı : !dyrekle duyuruno duyuru" return 0 } if {dyrmsg == ""} { puthelp "notice $nick eksik komut girdiniz.kullanımı : !dyrekle duyuruno duyuru" return 0 } if {[file exists $dzn] == 0} { set file [open $dzn w] close $file } set file [open $dzn a] puts $file $dyrmsg close $file puthelp "notice $nick $dyrno $dyrmsg eklendi" } proc duyuru:sil {nick host hand chan arg} { if {[channel get $chan duyuru] || [isop $nick $chan]} { return } set dyrno [lindex [split $arg] o] if {dyrno == ""} { puthelp "notice $nick yanlış komut girdiniz. kullanımı : !dyrsil duyuruno" return 0 } set dzn "duyurular.txt" if {[file exists $dzn] == 0} { set file [open $dzn w] close $file } set file [open $dzn "r"] set data [read -nonewline $file] close $file set lines [split $data "\n"] set i [expr $numara - 1] set delete [lreplace $lines $i $i] set files [open $dzn "w"] puts $files [join $delete "\n"] close $files set file [open $dzn "r"] set data [read -nonewline $file] close $file if {$data == ""} { set files [open $dzn "w"] close $files } puthelp "notice $nick $dyrno silindi." } proc duyuru:duyur {nick host hand arg} { global dyr if {[string match -nocase "duyur*" $arg] || [string match -nocase "dyr" $arg]} { return } if {[file exists $dzn] == 0} { set file [open $dzn w] close $file } set dzn "duyurular.txt" set file [open $dzn "r"] set w [read -nonewline $file] close $file set data [split $w "\n"] set i 0 if {data == ""} { puthelp "privmsg $nick herhangi bir duyurunuz bulunmuyor" return 0 } foreach dyr $data set i [expr $i +1] puthelp "privmsg $nick duyurular $i $dzn" } putlog "ömrümü yidiniz bea.. ömrümü ömrümü..."

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
# kullanımı : # hangi kanalda duyuru eklemek -silmek isteniyorsa , # telnet/dcc üzerinden bota .chanset #kanalınız +duyuru # komutuyla kodu aktif etmelisiniz. # belirlenen kanalda op olanlar # duyuru ekleyip silebilir. # !dyrekle duyuruno duyurumsg # !dyrsil duyuruno # bota özelde duyur , duyuru ,dyr demeniz yeterli # /msg botnick dyr ... gibi... setudef flag duyuru bind pub -|- !dyrekle duyuru:ekle bind pub -|- !dyrsil duyuru:sil bind msgm - "*" duyuru:duyur proc duyuru:ekle {nick host hand chan arg} { if {[channel get $chan duyuru] || [isop $nick $chan]} { return } set dzn "duyurular.txt" set dyrno [lindex [split $arg] o] set dyrmsg [join [lrange [split $arg] 1 end]] if {dyrno == ""} { puthelp "notice $nick eksik komut girdiniz.kullanımı : !dyrekle duyuruno duyuru" return 0 } if {dyrmsg == ""} { puthelp "notice $nick eksik komut girdiniz.kullanımı : !dyrekle duyuruno duyuru" return 0 } if {[file exists $dzn] == 0} { set file [open $dzn w] close $file } set file [open $dzn a] puts $file $dyrmsg close $file puthelp "notice $nick $dyrno $dyrmsg eklendi" } proc duyuru:sil {nick host hand chan arg} { if {[channel get $chan duyuru] || [isop $nick $chan]} { return } set dyrno [lindex [split $arg] o] if {dyrno == ""} { puthelp "notice $nick yanlış komut girdiniz. kullanımı : !dyrsil duyuruno" return 0 } set dzn "duyurular.txt" if {[file exists $dzn] == 0} { set file [open $dzn w] close $file } set file [open $dzn "r"] set data [read -nonewline $file] close $file set lines [split $data "\n"] set i [expr $numara - 1] set delete [lreplace $lines $i $i] set files [open $dzn "w"] puts $files [join $delete "\n"] close $files set file [open $dzn "r"] set data [read -nonewline $file] close $file if {$data == ""} { set files [open $dzn "w"] close $files } puthelp "notice $nick $dyrno silindi." } proc duyuru:duyur {nick host hand arg} { global dyr if {[string match -nocase "duyur*" $arg] || [string match -nocase "dyr" $arg]} { return } if {[file exists $dzn] == 0} { set file [open $dzn w] close $file } set dzn "duyurular.txt" set file [open $dzn "r"] set w [read -nonewline $file] close $file set data [split $w "\n"] set i 0 if {data == ""} { puthelp "privmsg $nick herhangi bir duyurunuz bulunmuyor" return 0 } foreach dyr $data set i [expr $i +1] puthelp "privmsg $nick duyurular $i $dzn" } putlog "ömrümü yidiniz bea.. ömrümü ömrümü..."

Pentagram bunu beğendi.
  Alıntı ile Cevapla

IRCForumu.Net - Reklam Alanı

Alt 30 Haziran 2016, 01:32   #2
Çevrimdışı
Cevap: !duyuruekle & !duyurucikar



Teşekkür ederim paylaşımın için @Che

__________________
Sana bu satırı bir hastanenin morgundan yazıyorum. 'La vie en rose' çalıyor. Beni terk ettiğini hatırlıyorum, bütün cesetler yas tutuyor.
  Alıntı ile Cevapla

IRCForumu.Net - Reklam Alanı

Cevapla

Etiketler
duyurucikar, duyuruekle
IRCForumu.Net - Sponsor Bağlantılar



Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık