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

IRCForumu.Net - Türkiye'nin IRC ve mIRC Kullanıcılarının Buluştuğu Forum (https://www.ircforumu.net/)
-   TCL Scriptler (https://www.ircforumu.net/tcl-scriptler/)
-   -   Kayitsiz Rumuz Karsilama TCL (https://www.ircforumu.net/tcl-scriptler/2869-kayitsiz-rumuz-karsilama-tcl.html)

immortaL 02 Temmuz 2016 14:24

Kayitsiz Rumuz Karsilama TCL
 
Kod:

##############
# BASLA ! :) #
##############

# Ozele iletilecek mesajlari belirtin.

set xox(mesaj) {
"Mesaj 1"
"Mesaj 2"
"Mesaj 3"
"Mesaj 4"
"Mesaj 5"
}

##############
#  CISS ! :) #
##############

bind raw * notice giris:kontrol
proc giris:kontrol {from keyword text} {
global botnick
        if {[string match -nocase "*client connecting*" $text]} {
                set rumuz "[lindex $text 9]"
                bind notc - * kayit:kontrol
                putquick "PRIVMSG NickServ :INFO $rumuz"
        }
}

proc kayit:kontrol {nick uhost hand text dest} {
global botnick xox
        if {$nick == "NickServ"} {
                if {[string match -nocase "*kay?tl?*deg?l*" $text]} {
                        set rastgelemesaj "[lindex $xox(mesaj) [rand [llength $xox(mesaj)]]]"
                        set noticerumuz "[lindex [stripcodes bcru $text] 0]"
                        utimer 10[list putquick "PRIVMSG $noticerumuz :$rastgelemesaj"]
                        unbind notc - * kayit:kontrol
                } else {
                        unbind notc - * kayit:kontrol
                }
        }
}

##############
# BITTI ! :) #
##############



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 08:48.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0
Copyright ©2005 - 2023 IRCForumu.Net - Tüm Hakları Saklıdır.