NetForumlari Nacizane  Paylasim Platformu NetForumlari Nacizane  Paylasim Platformu


Go Back   NetForumlari Nacizane Paylasim Platformu > IRC • mIRC • Hosting • Genel IRCD > Genel Ircd > Eggdrop - BNC - TCL



Etiketlenen Kullanıcılar

Yeni Konu aç Cevapla
 
Paylaş LinkBack Seçenekler Stil
Alt 19-01-11, 11:53   #1
ProdoziaC - ait Kullanıcı Resmi (Avatar)
Üyelik tarihi: Jan 2011
Yaş: 25
Mesajlar: 2.606
Konular: 909
Aldığı Teşekkür : 1
NF Puanı : 23890
NF Seviyesi : ProdoziaC has a reputation beyond repute ProdoziaC has a reputation beyond repute ProdoziaC has a reputation beyond repute ProdoziaC has a reputation beyond repute ProdoziaC has a reputation beyond repute ProdoziaC has a reputation beyond repute ProdoziaC has a reputation beyond repute ProdoziaC has a reputation beyond repute ProdoziaC has a reputation beyond repute ProdoziaC has a reputation beyond repute ProdoziaC has a reputation beyond repute
Post NoMercy v2.4ün Radyo Botu TCLsi +20 Fazla Dinleyici

PHP- Kodu:
set radiochans "#Radyo" 
set streamip "IP-ADRES" 
set streamport "Port" 
set streampass "Sifreniz" 
set scstatstrigger "!durum" 
set scstreamtrigger "!link" 
set scplayingtrigger "!çalan" 
set sclistenertrigger "!dinleyen" 
set scdjtrigger ".dj" 
set scsetdjtrigger ".setdj" 
set scwishtrigger ".wish" 
set scgreettrigger ".greet" 
set sclastsongstrigger "!Magic" 
set schelptrigger "!help" 
set announce "1" 
set urltopic "1" 
set tellsongs "1" 
set tellusers "1" 
set tellbitrate "1" 
set advertise "1" 
set offlinetext "4,4 0,1 Radyo DOMAIN'da Online DJ 4,1»0 4,1Bulunmamaktadır." 
set offlinetopic "4,4 0,1 Radyomuzu Winamp'tan Dinlemek için 4,1»0 4,1http://IP-Adres:Port/listen.pls" 
set onlinetext "4,4 0,1 Radyomuzu Winamp'tan Dinlemek için 4,1»0 4,1http://IP-Adres:Port/listen.pls" 
set onlinetopic "4,4 0,1 Radyomuzu Winamp'tan Dinlemek için 4,1»0 4,1http://IP-Adres:Port/listen.pls" 
set streamtext "4,4 0,1 Radyomuzu Winamp'tan Dinlemek için 4,1»0 4,1http://IP-Adres:Port/listen.pls" 
set advertisetext "4,4 0,1 Radyomuzu Winamp'tan Dinlemek için 4,1»0 4,1http://IP-Adres:Port/listen.pls" 
# end of config ##################### 
bind pub $scstatstrigger pub_scstat 
bind msg 
$scstatstrigger msg_scstat 
bind pub 
$scplayingtrigger pub_playing 
bind msg 
$scplayingtrigger msg_playing 
bind pub 
$scdjtrigger pub_dj 
bind msg 
$scdjtrigger msg_dj 
bind pub D $scsetdjtrigger pub_setdj 
bind msg D $scsetdjtrigger msg_setdj 
bind pub 
$scwishtrigger pub_wish 
bind msg 
$scwishtrigger msg_wish 
bind pub 
$scgreettrigger pub_greet 
bind msg 
$scgreettrigger msg_greet 
bind pub 
$scstreamtrigger pub_stream 
bind msg 
$scstreamtrigger msg_stream 
bind pub 
$sclastsongstrigger pub_lastsongs 
bind msg 
$sclastsongstrigger msg_lastsongs 
bind pub 
$sclistenertrigger pub_listener 
bind msg 
$sclistenertrigger msg_listener 
bind pub 
$schelptrigger pub_help 
bind msg 
$schelptrigger msg_help 
bind time 
"* * * * *" isonline 
bind time 
"?0 * * * *" advertise 
bind nick D 
djnickchange 
proc shrink 
calc number string start bl} { return [expr [string first "$string" $bl $start$calc $number] } 
proc poststuff mode text } { 
global 
radiochans 
foreach chan [channels] { 
if {
$radiochans == "" } { putserv "$mode $chan :$text" 
if {
$radiochans != "" } { 
if {([
lsearch -exact [string tolower $radiochans] [string tolower  $chan]] != -1) || ($radiochans == "")} {putserv "$mode $chan :$text"
}}} 
 
proc schelp target } { 
global 
scstatstrigger scstreamtrigger scplayingtrigger scdjtrigger  sclastsongstrigger scwishtrigger scgreettrigger sclistenertrigger 
putserv 
"privmsg #radyo Radyo botu icin gerekli komutlar:" 
putserv "privmsg #radyo $scstatstrigger - $scstreamtrigger -  $scplayingtrigger - $scdjtrigger - $sclastsongstrigger - $scwishtrigger -  $scgreettrigger - $sclistenertrigger" 
putserv "privmsg #radyo Radio.tcl yapimcisi - Magic" 

proc pub_help {nick uhost hand chan arg} { 
global 
radiochans 
if {$radiochans == "" } { schelp $nick 
if {
$radiochans != "" } { 
if {([
lsearch -exact [string tolower $radiochans] [string tolower $chan]] != -1) || ($radiochans == "")} { schelp $nick
}} 
proc advertise nick uhost hand chan arg } { 
global 
advertisetext advertise 
if {$advertise == "1" } { poststuff privmsg $advertisetext 

 
proc setdj {nickname djnickname } { 
if {
$djnickname == "" } { set djnickname $nickname 
global 
streamip streamport streampass 
putlog 
"shoutcast: new dj: $djnickname ($nickname)" 
set temp [open "dj" w+] 
puts $temp $djnickname 
close $temp 
set temp 
[open "djnick" w+] 
puts $temp $nickname 
close $temp 
putserv 
"privmsg your are now dj of this radio" 
if {[catch {set sock [socket $streamip $streamport] } sockerror]} { 
putlog "error: $sockerror" 
return } else { 
puts $sock "GET /admin.cgi?pass=$streampass&mode=viewxml&page=0 HTTP/1.0" 
puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)" 
puts $sock "Host: $streamip" 
puts $sock "Connection: close" 
puts $sock "" 
flush $sock 
while {[eof $sock] != 1} { 
set bl [gets $sock
if { [
string first "standalone" $bl] != -} { 
set streamstatus [string range $bl [shrink 14 "<STREAMSTATUS>" 0 $bl] [shrink "</STREAMSTATUS>" 0 $bl]] 
}} 
if { 
$streamstatus == "1" } { poststuff privmsg "$djnickname is now rocking the turntables, enjoy." } else { 
putserv "privmsg this has not been announced because the radio is currentlfy offline." 
}} 
 
proc listener target } { 
global 
streamip streamport streampass 
putlog 
"shoutcast: $target requested listener count" 
if {[catch {set sock [socket $streamip $streamport] } sockerror]} { 
putlog "error: $sockerror" 
return } else { 
puts $sock "GET /admin.cgi?pass=$streampass&mode=viewxml&page=0 HTTP/1.0" 
puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)" 
puts $sock "Host: $streamip" 
puts $sock "Connection: close" 
puts $sock "" 
flush $sock 
while {[eof $sock] != 1} { 
set bl [gets $sock
if { [
string first "standalone" $bl] != -} { 
set repl [string range $bl [shrink 19 "<REPORTEDLISTENERS>" 0 $bl] [shrink "</REPORTEDLISTENERS>" 0 $bl]] 
set curhigh [string range $bl [shrink 15 "<PEAKLISTENERS>" 0 $bl] [shrink "</PEAKLISTENERS>" 0 $bl]] 
set maxl [string range $bl [shrink 14 "<MAXLISTENERS>" 0 $bl] [shrink "</MAXLISTENERS>" 0 $bl]] 
set avgtime [string range $bl [shrink 13 "<AVERAGETIME>" 0 $bl] [shrink "</AVERAGETIME>" 0 $bl]] 
}} 
close $sock 
putserv 
"privmsg #radyo 4,4 0,1 Radyomuzun Dinlenme Oranı: 4,1» ([expr $repl + 20])" 
}} 
proc msg_listener nick uhost hand arg } { global radiochanslistener $nick 
proc pub_listener nick uhost hand chan arg } { global radiochans; if  {([lsearch -exact [string tolower $radiochans] [string tolower $chan]]  != -1) || ($radiochans == "")} { listener $nick }} 
proc wish nick arg } { 
if {
$arg == ""} { putserv "privmsg #radyo you forgot to add your wish"; return 0
global 
streamip streamport streampass 
putlog 
"shoutcast: $nick wants to hear: $arg" 
if {[catch {set sock [socket $streamip $streamport] } sockerror]} { 
putlog "error: $sockerror" 
return } else { 
puts $sock "GET /admin.cgi?pass=$streampass&mode=viewxml&page=0 HTTP/1.0" 
puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)" 
puts $sock "Host: $streamip" 
puts $sock "Connection: close" 
puts $sock "" 
flush $sock 
while {[eof $sock] != 1} { 
set bl [gets $sock
if { [
string first "standalone" $bl] != -} { 
set streamstatus [string range $bl [shrink 14 "<STREAMSTATUS>" 0 $bl] [shrink "</STREAMSTATUS>" 0 $bl]] 
}} 
if { 
$streamstatus == "1" } { 
set temp [open "djnick" r
set djnick [gets $temp
close $temp 
putserv 
"privmsg $djnick :(WISH) - $nick - $arg" 
} else { 
putserv "privmsg #radyo sorry radio is currently offline" 
}} 
 
proc msg_wish nick uhost hand arg } { global radiochanswish $nick $arg 
proc pub_wish nick uhost hand chan arg } { global radiochans; if  {([lsearch -exact [string tolower $radiochans] [string tolower $chan]]  != -1) || ($radiochans == "")} { wish $nick $arg }} 
 
 
proc sclastsongs target } { 
global 
streamip streamport streampass 
putlog 
"shoutcast: $target requested songhistory" 
if {[catch {set sock [socket $streamip $streamport] } sockerror]} { 
putlog "error: $sockerror" 
return } else { 
puts $sock "GET /admin.cgi?pass=$streampass&mode=viewxml&page=0 HTTP/1.0" 
puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)" 
puts $sock "Host: $streamip" 
puts $sock "Connection: close" 
puts $sock "" 
flush $sock 
while {[eof $sock] != 1} { 
set bl [gets $sock
if { [
string first "standalone" $bl] != -} { 
set songs [string range $bl [string first "<TITLE>" $bl] [expr [string last "</TITLE>" $bl] + 7]] 
regsub -all "&#x3C;" $songs "<" songs 
regsub 
-all "&#x3E;" $songs ">" songs 
regsub 
-all "&#x26;" $songs "+" songs 
regsub 
-all "&#x22;" $songs "\"" songs 
regsub 
-all "&#x27;" $songs "'" songs 
regsub 
-all "&#xFF;" $songs "" songs 
regsub 
-all "<TITLE>" $songs "(" songs 
regsub 
-all "</TITLE>" $songs ")" songs 
regsub 
-all "<SONG>" $songs "" songs 
regsub 
-all "</SONG>" $songs " - " songs 
regsub 
-all "<PLAYEDAT>" $songs "" songs 
regsub 
-all "</PLAYEDAT>" $songs "" songs 
regsub 
-all {d$songs "" songs 
}} 
putserv "privmsg #radyo $songs" 
}} 
 
proc msg_lastsongs nick uhost hand arg } { global radiochanssclastsongs $nick 
proc pub_lastsongs nick uhost hand chan arg } { global radiochans; if  {([lsearch -exact [string tolower $radiochans] [string tolower $chan]]  != -1) || ($radiochans == "")} { sclastsongs $nick }} 
 
proc scstream target } { 
global 
streamip streamport streamtext 
putlog 
"shoutcast: streaminfo requested by $target" 
putserv "privmsg #radyo $streamtext" 

proc msg_stream nick uhost hand arg } { global radiochansscstream $nick 
proc pub_stream nick uhost hand chan arg } { global radiochans; if  {([lsearch -exact [string tolower $radiochans] [string tolower $chan]]  != -1) || ($radiochans == "")} { scstream $nick }} 
proc scgreet nick arg } { 
if {
$arg == ""} { putserv "privmsg #radyo you forgot to add your greetmessage"; return 0
global 
dj streamip streamport streampass 
putlog 
"shoutcast: $nick greets fly out to: $arg" 
if {[catch {set sock [socket $streamip $streamport] } sockerror]} { 
putlog "error: $sockerror" 
return } else { 
puts $sock "GET /admin.cgi?pass=$streampass&mode=viewxml&page=0 HTTP/1.0" 
puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)" 
puts $sock "Host: $streamip" 
puts $sock "Connection: close" 
puts $sock "" 
flush $sock 
while {[eof $sock] != 1} { 
set bl [gets $sock
if { [
string first "standalone" $bl] != -} { 
set streamstatus [string range $bl [shrink 14 "<STREAMSTATUS>" 0 $bl] [shrink "</STREAMSTATUS>" 0 $bl]] 
}} 
if { 
$streamstatus == "1" } { 
set temp [open "djnick" r
set djnick [gets $temp
close $temp 
putserv 
"privmsg $djnick :(GREET) - $nick - $arg" 
} else { 
putserv "privmsg #radyo sorry radio is currently offline" 
}} 
 
proc msg_greet nick uhost hand arg } { global radiochansscgreet $nick $arg 
proc pub_greet nick uhost hand chan arg } { global radiochans; if  {([lsearch -exact [string tolower $radiochans] [string tolower $chan]]  != -1) || ($radiochans == "")} { scgreet $nick $arg }} 
proc msg_setdj nick uhost hand arg } { global radiochanssetdj $nick $arg 
proc pub_setdj nick uhost hand chan arg } { global radiochans; if  {([lsearch -exact [string tolower $radiochans] [string tolower $chan]]  != -1) || ($radiochans == "")} { setdj $nick $arg }} 
 
proc djnickchange oldnick uhost hand chan newnick } { 
set temp [open "djnick" r
set djnick [gets $temp
close $temp 
if {$oldnick == $djnick} { 
putlog "shoutcast: dj nickchange $oldnick -> $newnick" 
set temp [open "djnick" w+] 
puts $temp $newnick 
close $temp 
}} 
 
 
proc dj target } { 
global 
streamip streamport streampass 
putlog 
"shoutcast: $target asked for dj info" 
if {[catch {set sock [socket $streamip $streamport] } sockerror]} { 
putlog "error: $sockerror" 
return } else { 
puts $sock "GET /admin.cgi?pass=$streampass&mode=viewxml&page=0 HTTP/1.0" 
puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)" 
puts $sock "Host: $streamip" 
puts $sock "Connection: close" 
puts $sock "" 
flush $sock 
while {[eof $sock] != 1} { 
set bl [gets $sock
if { [
string first "standalone" $bl] != -} { 
set streamstatus [string range $bl [shrink 14 "<STREAMSTATUS>" 0 $bl] [shrink "</STREAMSTATUS>" 0 $bl]] 
}} 
if {
$streamstatus == 1} { 
if {[
file exists dj]} { 
set temp [open "dj" r
set dj [gets $temp
close $temp 
putserv 
"privmsg #radyo $dj is at the turntables!" 
} else { putserv "privmsg #radyo sorry, no dj name available" 
} else { 
putserv "privmsg #radyo sorry radio is currently offline" 

close $sock 
}} 
 
proc msg_dj nick uhost hand arg } { global radiochansdj $nick"} 
proc pub_dj { nick uhost hand chan arg } { global radiochans; if  {([lsearch -exact [string tolower $radiochans] [string tolower $chan]]  != -1) || ($radiochans == "")} { dj $nick }} 
 
proc scstat {target} { 
global streamip streamport streampass 
putlog "
shoutcast$target asked for serverstats
if {[catch {set sock [socket $streamip $streamport] } sockerror]} { 
putlog "
error$sockerror
return 0 } else { 
puts $sock "
GET /admin.cgi?pass=$streampass&mode=viewxml&page=0 HTTP/1.0
puts $sock "
User-AgentMozilla/5.0 (X11ULinux i686en-USrv:0.9.9)
puts $sock "
Host$streamip
puts $sock "
Connectionclose
puts $sock "" 
flush $sock 
while {[eof $sock] != 1} { 
set bl [gets $sock] 
if { [string first "
standalone" $bl] != -1 } { 
set streamstatus [string range $bl [shrink + 14 "
<STREAMSTATUS>" 0 $bl] [shrink - 1 "</STREAMSTATUS>" 0 $bl]] 
set repl [string range $bl [shrink + 19 "
<REPORTEDLISTENERS>" 0 $bl] [shrink - 1 "</REPORTEDLISTENERS>" 0 $bl]] 
set curhigh [string range $bl [shrink + 15 "
<PEAKLISTENERS>" 0 $bl] [shrink - 1 "</PEAKLISTENERS>" 0 $bl]] 
set currentl [string range $bl [shrink + 18 "
<CURRENTLISTENERS>" 0 $bl] [shrink - 1 "</CURRENTLISTENERS>" 0 $bl]] 
set surl [string range $bl [shrink + 11 "
<SERVERURL>" 0 $bl] [shrink - 1 "</SERVERURL>" 0 $bl]] 
set maxl [string range $bl [shrink + 14 "
<MAXLISTENERS>" 0 $bl] [shrink - 1 "</MAXLISTENERS>" 0 $bl]] 
set bitrate [string range $bl [shrink + 9 "
<BITRATE>" 0 $bl] [shrink - 1 "</BITRATE>" 0 $bl]] 
set stitle [string range $bl [shrink + 13 "
<SERVERTITLE>" 0 $bl] [shrink - 1 "</SERVERTITLE>" 0 $bl]] 
set sgenre [string range $bl [shrink + 13 "
<SERVERGENRE>" 0 $bl] [shrink - 1 "</SERVERGENRE>" 0 $bl]] 
if {$sgenre != ""} {set sgenre " 
($sgenre)"} 
set avgtime [string range $bl [shrink + 13 "
<AVERAGETIME>" 0 $bl] [shrink - 1 "</AVERAGETIME>" 0 $bl]] 
set irc [string range $bl [shrink + 5 "
<IRC>" 0 $bl] [shrink - 1 "</IRC>" 0 $bl]] 
set icq [string range $bl [shrink + 5 "
<ICQ>" 0 $bl] [shrink - 1 "</ICQ>" 0 $bl]] 
if {$icq == 0} { set icq "
N/A" } 
set aim [string range $bl [shrink + 5 "
<AIM>" 0 $bl] [shrink - 1 "</AIM>" 0 $bl]] 
set webhits [string range $bl [shrink + 9 "
<WEBHITS>" 0 $bl] [shrink - 1 "</WEBHITS>" 0 $bl]] 
set streamhits [string range $bl [shrink + 12 "
<STREAMHITS>" 0 $bl] [shrink - 1 "</STREAMHITS>" 0 $bl]] 
set version [string range $bl [shrink + 9 "
<VERSION>" 0 $bl] [shrink - 1 "</VERSION>" 0 $bl]] 
if {$streamstatus == 1} { 
if {[file exists dj]} { 
set temp [open "
dj" r] 
set dj [gets $temp] 
close $temp 
} else { set dj "
none" } 
putserv "
privmsg #radyo 4,4 0,1 Yayında şu an »»»4,1 $stitle 0,1««« Bulunmakta. Yayın Türü: 4,1 $stitle " 
putserv "privmsg #radyo 4,4 0,1 Radyo 4DOMAIN 0WEB'den Dinlemek için 4,1»0 4,1wWw.DOMAIN.Net" 
putserv "privmsg #radyo 4,4 0,1 Radyo DJ'lerimizden4 $stitle 0şu anda online " 
putserv "privmsg #radyo 4,4 0,1 Radyomuzun Dinlenme Oranı: 4,1» ([expr $repl + 20]) 0Rekor:4 » ([expr $repl + 20])" 
putserv "privmsg #radyo 4,4 0,1 Radyomuzu Winamp'tan Dinlemek için 4,1»0 4,1http://IP-Adres:Port/listen.pls" 
} else { 
putserv "privmsg #radyo 4,4 0,1 Radyo DOMAIN'da Online DJ 4,1»0 4,1Bulunmamaktadır." 
}} 
close $sock 
}} 
 
proc msg_scstat nick uhost hand arg } { global radiochansscstat $nick
proc pub_scstat nick uhost hand chan arg } { global radiochans; if  {([lsearch -exact [string tolower $radiochans] [string tolower $chan]]  != -1) || ($radiochans == "")} { scstat $nick }} 
 
proc playing {target} { 
global 
streamip streamport streampass 
putlog 
"shoutcast: $target asked for current song" 
if {[catch {set sock [socket $streamip $streamport] } sockerror]} { 
putlog "error: $sockerror" 
return } else { 
puts $sock "GET /admin.cgi?pass=$streampass&mode=viewxml&page=0 HTTP/1.0" 
puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)" 
puts $sock "Host: $streamip" 
puts $sock "Connection: close" 
puts $sock "" 
flush $sock 
while {[eof $sock] != 1} { 
set bl [gets $sock
if { [
string first "standalone" $bl] != -} { 
set streamstatus [string range $bl [shrink 14 "<STREAMSTATUS>" 0 $bl] [shrink "</STREAMSTATUS>" 0 $bl]] 
set songtitle [string range $bl [shrink 11 "<SONGTITLE" 0 $bl] [shrink "</SONGTITLE>" 0 $bl]] 
set songurl [string range $bl [shrink "<SONGURL>" 0 $bl] [shrink "</SONGURL>" 0 $bl]] 
if {
$songurl != ""} { set songurl " ($songurl)"
regsub -all "&#x3C;" $songtitle "<" songtitle 
regsub 
-all "&#x3E;" $songtitle ">" songtitle 
regsub 
-all "&#x26;" $songtitle "+" songtitle 
regsub 
-all "&#x22;" $songtitle "\"" songtitle 
regsub 
-all "&#x27;" $songtitle "'" songtitle 
regsub 
-all "&#xFF;" $songtitle "" songtitle 
if {$streamstatus == 1} { 
putserv "privmsg #radyo 4,4 0,1 Radyo 4DOMAIN 0Çalan Parça:4 $songtitle$songurl " 
putserv "privmsg #radyo 4,4 0,1 Radyo 4DOMAIN 0WEB'den Dinlemek için 4,1»0 4,1wWw.DOMAIN.Net" 
putserv "privmsg #radyo 4,4 0,1 Radyomuzu Winamp'tan Dinlemek için 4,1»0 4,1http://IP-Adres:Port/listen.pls" 
} else { 
putserv "privmsg #radyo 4,4 0,1 Radyo DOMAIN'da Online DJ 4,1»0 4,1Bulunmamaktadır." 
}}} 
close $sock 
}} 
proc msg_playing nick uhost hand arg } { global radiochansplaying $nick
proc pub_playing nick uhost hand chan arg } { global radiochans; if  {([lsearch -exact [string tolower $radiochans] [string tolower $chan]]  != -1) || ($radiochans == "")} { playing $nick }} 
proc isonline nick uhost hand chan arg } { 
global 
radiochans announce tellusers tellsongs tellbitrate urltopic 
global offlinetext offlinetopic onlinetext onlinetopic 
global streamip streampass streamport 
if {$announce == || $tellsongs == || $tellusers == || $tellbitrate == 1} { 
set isonlinefile "isonline" 
set oldisonline "isonline: 0" 
set oldcurlist "4,1 : 15,1 0" 
set oldcurhigh "curhigh: 0" 
set oldsong "cursong: 0" 
set oldbitrate "bitrate: 0" 
if {[file exists $isonlinefile]} { 
putlog "shoutcast: checking if stream is online" 
set temp [open "isonline" r
while {[
eof $temp] != 1} { 
set zeile [gets $temp
if {[
string first "isonline:" $zeile] != -} { set oldisonline $zeile 
if {[
string first "curlist:" $zeile] != -} { set oldcurlist $zeile 
if {[
string first "curhigh:" $zeile] != -} { set oldcurhigh $zeile 
if {[
string first "cursong:" $zeile] != -} { set oldsong $zeile 
if {[
string first "bitrate:" $zeile] != -} { set oldbitrate $zeile 

close $temp 

 
if {[catch {
set sock [socket $streamip $streamport] } sockerror]} { 
putlog "error: $sockerror" 
return 0} else { 
puts $sock "GET /admin.cgi?pass=$streampass&mode=viewxml&page=0 HTTP/1.0" 
puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)" 
puts $sock "Host: $streamip" 
puts $sock "Connection: close" 
puts $sock "" 
flush $sock 
while {[eof $sock] != 1} { 
set bl [gets $sock
if { [
string first "standalone" $bl] != -} { 
set streamstatus "isonline: [string range $bl [shrink + 14  "<STREAMSTATUS>" 0 $bl] [shrink - 1 "</STREAMSTATUS>" 0  $bl]]" 
set repl "curlist: [string range $bl [shrink + 19  "<REPORTEDLISTENERS>" 0 $bl] [shrink - 1  "</REPORTEDLISTENERS>" 0 $bl]]" 
set curhigh "curhigh: [string range $bl [shrink + 15  "<PEAKLISTENERS>" 0 $bl] [shrink - 1 "</PEAKLISTENERS>" 0  $bl]]" 
set currentl [string range $bl [shrink 18 "<CURRENTLISTENERS>" 0 $bl] [shrink "</CURRENTLISTENERS>" 0 $bl]] 
set surl "serverurl: [string range $bl [shrink + 11 "<SERVERURL>" 0 $bl] [shrink - 1 "</SERVERURL>" 0 $bl]]" 
set cursong "cursong: [string range $bl [shrink + 11 "<SONGTITLE" 0 $bl] [shrink - 1 "</SONGTITLE>" 0 $bl]]" 
set songurl [string range $bl [shrink "<SONGURL>" 0 $bl] [shrink "</SONGURL>" 0 $bl]] 
set bitrate "bitrate: [string range $bl [shrink + 9 "<BITRATE>" 0 $bl] [shrink - 1 "</BITRATE>" 0 $bl]]" 
set stitle [string range $bl [shrink 13 "<SERVERTITLE>" 0 $bl] [shrink "</SERVERTITLE>" 0 $bl]] 
set sgenre [string range $bl [shrink 13 "<SERVERGENRE>" 0 $bl] [shrink "</SERVERGENRE>" 0 $bl]] 
}} 
close $sock 

set temp [open "isonline" w+] 
puts $temp "$streamstatus\n$repl\n$curhigh\n$cursong\n$bitrat  e" 
close $temp 
if {$announce == } { 
if {
$streamstatus == "isonline: 0" && $oldisonline == "isonline: 1"} { 
poststuff privmsg $offlinetext 
if {$urltopic == 1} { poststuff topic $offlinetopic 

if {
$streamstatus == "isonline: 1" && $oldisonline == "isonline: 0" } { 
if {
$sgenre != ""} { 
set sgenre " ($sgenre)" 

poststuff privmsg "4,4 0,1 Yayında şu an »»»4,1 $stitle 0,1«««  Bulunmakta. Yayın Türü: 4,1 $sgenre 0,1Çalan parça: « 4,1 [lrange  $cursong 1 [llength $cursong]]$songurl 0 » 4,4 " 
if {$urltopic == 100} { poststuff topic "4,4 0,1 Yayında şu an »»»4,1  $stitle 0,1««« Bulunmakta. Yayın Türü: 4,1 $sgenre " 
}} 
if {(
$tellusers == 1) && ($streamstatus == "isonline: 1") && ($oldcurhigh != "curhigh: 0") } { 
if {
$oldcurhigh != $curhigh} { 
poststuff privmsg "4,4 0,1 Radyomuzun Dinlenme Oranı: 4,1» ([expr $repl + 20])" 

if {
$oldcurlist != $repl} { 
poststuff privmsg "4,4 0,1 Radyomuzun Dinlenme Oranı: 4,1» ([expr $repl + 20]) " 
}} 
if {(
$tellsongs == 1) && ($oldsong != $cursong) && ($streamstatus == "isonline: 1") } { 
if {
$songurl != ""} { set songurl " ($songurl)"
regsub -all "&#x3C;" $cursong "<" cursong 
regsub 
-all "&#x3E;" $cursong ">" cursong 
regsub 
-all "&#x26;" $cursong "+" cursong 
regsub 
-all "&#x22;" $cursong "\"" cursong 
regsub 
-all "&#x27;" $cursong "'" cursong 
regsub 
-all "&#xFF;" $cursong "" cursong 
poststuff privmsg 
"4,4 0,1 Yayında şu an »»»4,1 $stitle 0,1«««  Bulunmakta. Yayın Türü: 4,1 $sgenre 0,1Çalan parça: « 4,1 [lrange  $cursong 1 [llength $cursong]]$songurl 0» 4,4 " 
poststuff privmsg "4,4 0,1 Radyo DJ'lerimizden4 $stitle 0şu anda online "
poststuff privmsg "4,4 0,1 Radyo 4DOMAIN 0WEB'den Dinlemek için 4,1»0 4,1wWw.DOMAIN.Net"
poststuff privmsg "4,4 0,1 Radyo 4DOMAIN 0Çalan Parça:4 [lrange $cursong 1 [llength $cursong]]$songurl "
poststuff privmsg "4,4 0,1 Radyomuzun Dinlenme Oranı: 4,1» ([expr $repl + 20]) 0Rekor:4 » ([expr $repl + 20])"
poststuff privmsg "4,4 0,1 Radyomuzu Winamp'tan Dinlemek için 4,1»0 4,1http://IP-Adres:Port/listen.pls"

if {(
$tellbitrate == 1) && ($oldbitrate != $bitrate) &&  ($streamstatus == "isonline: 1") && ($oldbitrate != "bitrate:  0")} { 
poststuff privmsg "bitrate switched to [lindex $bitrate 1]kbps" 
}}} 
 
bind pub - !istek istek 
proc istek 
{n u h c a} { 
global 
gnick 
set gnick $n 
set kanal 
[lindex $a 
putserv "PRIVMSG #DJ 4İstek İsteyen 2$gnick4 İsteği:2 $kanal" 
putserv "PRIVMSG #Radyo : 4Isteginiz DJ'lerimize iletilmistir 2$gnick 5( $kanal ) " 


Domain Adres:IP Yerlerini Değiştirin, Herşarkı Değişiminde Kanala Yansıtıcaktır Kendi Editlediğim Bi TCL'dir. Bu arada, Radyo Göstergesi +20'lidir.
________________

[Link Görmek ve Forumumuzdan Yararlanmak İçin Üye Olmasınız. ]



ωєв мαδтєя - ℓιиυχ - δєσ - му-δqℓ - ωєв ¢σ∂єя ¢σσя∂ιиαтισи'δ







ProdoziaC isimli Üye şimdilik offline konumundadır  
Alıntı ile Cevapla
Cevapla

Sosyal Ağlar

Etiketler
botu , dinleyici , fazla , nomercy , radyo , tclsi , v24ün


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
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


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
K9 Botu ProdoziaC Eggdrop - BNC - TCL 0 19-01-11 10:50
Radyo matik radyo dj'ler (vj'ler) için KuRSaT Tv & Radyo Yayın Programı İndir 7 02-08-10 13:54
20-30 DinLeyici Sayısı oLan Sohbet Sitemize Dj Aranmaktadır ! Reseted IRC Server Duyuruları / Görev Dağılımları 2 13-07-09 19:54
Arama botu Teqnic Eggdrop - BNC - TCL 1 28-07-08 11:59
Radyo Botu Kurulumu Teqnic Eggdrop - BNC - TCL 1 20-01-08 20:02


Forum Yasal Uyarı

Powered by vBulletin® Version 3.8.7 .
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2

İçerik sağlayacı paylaşım sitelerinden biri olan NetForumlari.COM Adresimizde 5651 Sayılı Kanun'un 8. Maddesine ve T.C.K'nın 125. Maddesine göre TÜM ÜYELERİMİZ yaptıkları paylaşımlardan sorumludur. NetForumlari.COM hakkında yapılacak tüm hukuksal Şikayetler, Yöneticilerimiz ile iletişime geçilmesi yada iletişim formunu doldurulması halinde ilgili kanunlar ve yönetmelikler çerçevesinde en geç 1 (Bir) Hafta içerisinde NetForumlari yönetimi olarak tarafımızdan gereken işlemler yapılacak ve size dönüş sağlanacaktır. info@netforumlari.com
hastaneler | cikcik | tivitır | güzel sözler | ankara avukat