IRCForumu.NET - IRC ve mIRC Tutkunlarının Yeni Adresi! ircforumu




Like Tree1Beğeni(ler)
  • 1 Post By immortaL
Yeni Konu aç Cevapla
 
LinkBack Seçenekler Stil
Alt 30 Haziran 2016, 00:05   #1
Çevrimdışı
 
immortaL - ait Kullanıcı Resmi (Avatar)
 
Üyelik Tarihi: 07 Mayıs 2016
Üye No: 38
Şehir: Bolu
WebSite: IRCForumu.Net
IRC:
İlgi Alanım: vBulletin
Mesaj Sayısı: 1,321
Aldığı Beğeni: 504
Beğendikleri: 733
@immortaL
!duyuruekle & !duyurucikar


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ı
ircforumu

Alt 30 Haziran 2016, 01:32   #2
Çevrimdışı
Sohbet.ORG.TR
 
Pentagram - ait Kullanıcı Resmi (Avatar)
 
Üyelik Tarihi: 02 Haziran 2016
Üye No: 103
Şehir: İstanbul
WebSite: sohbet.org.tr
IRC: sohbet.org.tr
İlgi Alanım: Yok
Mesaj Sayısı: 23
Aldığı Beğeni: 23
Beğendikleri: 19
@Pentagram
Cevap: !duyuruekle & !duyurucikar


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

__________________
sohbet ağının tek adresi
www.sohbet.org.tr
  Alıntı ile Cevapla

IRCForumu.Net - Reklam Alanı
ircforumu

Cevapla

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


Seçenekler
Stil

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