IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   TCL Scriptler (https://www.ircforumlari.net/tcl-scriptler/)
-   -   txt okutmalı karsilama mesajı (https://www.ircforumlari.net/tcl-scriptler/1011906-txt-okutmali-karsilama-mesaji.html)

Xadd1 02 Haziran 2023 10:10

txt okutmalı karsilama mesajı
 
Kod:

set ngver "v0.6.3"
# newgreet v0.6.3 for eggdrop v1.3
# by toot <toot@[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]d9.net>
# tested on eggdrop v1.3.16
# 02/6/23

# this script will choose a random greet from a text
# file when a user who the bot doesn't know enters
# the channel.  i got the idea from a tcl i saw on
# efnet, i'm not sure who wrote it tho...
# BIG BIG thanks to Design who helped me :)

# just put the tcl file in your scripts directory, add
# it to your config, and put a greets file in your
# eggdrop directory.. :)


## you just need to set the file the greets will
## be chosen from.. one greet per line.
set greetfile "greetfile.txt"


## here's the actual script..

bind join - * ngreet

proc ngreet {nick host handle chan} {
  if {$handle == "*"} {
      global greetfile
      set file [open $greetfile r]
      set line 0
      while ![eof $file] {
        set lines([incr line]) [gets $file]
        }
      set line [rand $line]
      set randomline $lines($line)
      close $file
      putserv "PRIVMSG $chan :\[$nick\] $randomline"
      }
  }

putlog "\002newgreet\002 $ngver by toot, loaded!@"



DipNot : Alıntıdır.

No_FeaR 05 Haziran 2023 16:01

Cevap: txt okutmalı karsilama mesajı
 
Alıntı:

Xadd1 Nickli Üyeden Alıntı (Mesaj 1042806861)
set ngver "v0.6.3"
# newgreet v0.6.3 for eggdrop v1.3
# by toot <toot@[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]d9.net>
# tested on eggdrop v1.3.16
# 02/6/23

# this script will choose a random greet from a text
# file when a user who the bot doesn't know enters
# the channel. i got the idea from a tcl i saw on
# efnet, i'm not sure who wrote it tho...
# BIG BIG thanks to Design who helped me :)

# just put the tcl file in your scripts directory, add
# it to your config, and put a greets file in your
# eggdrop directory.. :)


## you just need to set the file the greets will
## be chosen from.. one greet per line.
set greetfile "greetfile.txt"


## here's the actual script..

bind join - * ngreet

proc ngreet {nick host handle chan} {
if {$handle == "*"} {
global greetfile
set file [open $greetfile r]
set line 0
while ![eof $file] {
set lines([incr line]) [gets $file]
}
set line [rand $line]
set randomline $lines($line)
close $file
putserv "PRIVMSG $chan :\[$nick\] $randomline"
}
}

putlog "\002newgreet\002 $ngver by toot, loaded!@"




DipNot : Alıntıdır.

Bunu Code olarak paylaşsanız daha iyi olurdu sanki, Emeğinize sağlık... ^_^

SNOOPY 05 Haziran 2023 16:54

Cevap: txt okutmalı karsilama mesajı
 
Yapanın ellerine sağlık


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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk