Jump to content

Youtube Add On


biohazard

Recommended Posts

this is what it post to look like http://www.tg007.net/file-1434


here is what i see in my script tho

[07:41.p] 1You0,4Tube 2Video3:12 <title>Tripper Getem - Grave Digger (Official Music Video) - YouTube</title><link rel="search" type="application/opensearchdescription+xml" href="http://www.youtube.com/opensearch?locale=en_US" title="YouTube Video Search<link rel="shortcut icon" href="http://s.ytimg.com/yts/img/favicon-vfldLzJxy.ico" type="image/x-icon <link rel="icon" href="//s.ytimg.com/yts/img/favicon_32-vflWoMFGx.png" sizes="32x32<link rel="canonical" href="
rel="alternate" media="handheld" href="
rel="alternate" media="only screen and (max-width: 640px)" href="
rel="shortlink" href="
Tripper Getem - Grave Digger (Official Music Video)



so what is going on that i need to fix ??






menu menubar {

-

.· $chr(32) = Youtube-Bot = Echo-( $+ $group(#Youtube1) $+ ) Room-( $+ $group(#Youtube) $+ )

..$iif($group(#Youtube1) == on,$style(2)) · $chr(32) = Turn Youtube-Bot Echo Broadcast On =: {

.enable #Youtube1 | .disable #Youtube | echo $active 1You0,4Tube12-Bot Echo Broadcast Has Been Turned 4ON 1...

}

..$iif($group(#Youtube1) == off,$style(2)) · $chr(32) = Turn Youtube-Bot Echo Broadcast Off =: {

.disable #Youtube1 | echo $active 1You0,4Tube12-Bot Echo Broadcast Has Been Turned 4OFF 1...

}

..-

..$iif($group(#Youtube) == on,$style(2)) · $chr(32) = Turn Youtube-Bot Room Broadcast On =: {

.enable #Youtube | .disable #Youtube1 | echo $active 1You0,4Tube12-Bot Room Broadcast Has Been Turned 4ON 1...

}

..$iif($group(#Youtube) == off,$style(2)) · $chr(32) = Turn Youtube-Bot Room Broadcast Off =: {

.disable #Youtube | echo $active 1You0,4Tube12-Bot Room Broadcast Has Been Turned 4OFF 1...

}

}

-


on *:load {

echo -sat 1You0,4Tube3-Bot Has Now Been 4Loaded 1...

echo -sat 3By Default The 1You0,4Tube3-Bot Room Broadcast Is Enabled, This Will Broadcast The Video Title In Any Room Someone Posts A 1You0,4Tube3 Video Link In. You Can Disable This Feature And Enable The 1You0,4Tube3-Bot Echo Broadcast Option Under The Menu Bar 1...

}

on *:unload {

echo -sat 1You0,4Tube3-Bot Has Now Been 4Unloaded 1...

}


#youtube off



on *:SOCKOPEN:youtube:{


; connection

sockwrite -n $sockname GET %tmpyoutubex HTTP/1.1


; Write Connection Details

sockwrite -n $sockname Host: www.youtube.com

sockwrite -n $sockname User-Agent: IRCSpider/mIRC $version

sockwrite -n $sockname Accept: *.*, */*

sockwrite -n $sockname Referer: $server

sockwrite -n $sockname Connection: Keep-Alive

sockwrite -n $sockname Content-Type: text/html

sockwrite -n $sockname $crlf


}

on *:SOCKREAD:youtube:{

sockread %mirc.temp

if (<meta name="title" content=" isin %mirc.temp) {

if (%d == 1) { }

else {

privmsg %tmp.chanyoutube [style ff:Tahoma;co:black;]You[/style][style ff:Tahoma;bgco:red;co:white;]Tube[/style] [style ff:Tahoma;co:blue;] Video[/style][style ff:Tahoma;co:red;b;]: [/style] $remove(%mirc.temp,<meta name="title" content=","> )

echo -t %tmp.chanyoutube 1You0,4Tube 2Video3:12 $remove(%mirc.temp,<meta name="title" content=","> )

inc %d

}

}

}

on *:SOCKCLOSE:youtube:{ /noop }

on *:TEXT:*:#:{

set %tmp.chanyoutube $chan

unset %d

var %i 1

while ([ $chr(36) $+ [ %i ] ]) {

if (youtube.com/watch?v= isin [ $chr(36) $+ [ %i ] ]) { sockclose youtube | xconnection [ $chr(36) $+ [ %i ] ] }

inc %i

}

}


on *:ACTION:*:#:{

set %tmp.chanyoutube $chan

unset %d

var %i 1

while ([ $chr(36) $+ [ %i ] ]) {

if (youtube.com/watch?v= isin [ $chr(36) $+ [ %i ] ]) { sockclose youtube | xconnection [ $chr(36) $+ [ %i ] ] }

inc %i

}

}


on *:AWAY:*:#:{

set %tmp.chanyoutube $chan

unset %d

var %i 1

while ([ $chr(36) $+ [ %i ] ]) {

if (youtube.com/watch?v= isin [ $chr(36) $+ [ %i ] ]) { sockclose youtube | xconnection [ $chr(36) $+ [ %i ] ] }

inc %i

}

}


#youtube end


#youtube1 off



on *:SOCKOPEN:youtube:{


; connection

sockwrite -n $sockname GET %tmpyoutubex HTTP/1.1


; Write Connection Details

sockwrite -n $sockname Host: www.youtube.com

sockwrite -n $sockname User-Agent: IRCSpider/mIRC $version

sockwrite -n $sockname Accept: *.*, */*

sockwrite -n $sockname Referer: $server

sockwrite -n $sockname Connection: Keep-Alive

sockwrite -n $sockname Content-Type: text/html

sockwrite -n $sockname $crlf


}

on *:SOCKREAD:youtube:{

sockread %mirc.temp

if (<meta name="title" content=" isin %mirc.temp) {

if (%d == 1) { }

else {

echo -t %tmp.chanyoutube 1You0,4Tube 2Video3:12 $remove(%mirc.temp,<meta name="title" content=","> )

inc %d

}

}

}

on *:SOCKCLOSE:youtube:{ /noop }

on *:TEXT:*:#:{

set %tmp.chanyoutube $chan

unset %d

var %i 1

while ([ $chr(36) $+ [ %i ] ]) {

if (youtube.com/watch?v= isin [ $chr(36) $+ [ %i ] ]) { sockclose youtube | xconnection [ $chr(36) $+ [ %i ] ] }

inc %i

}

}


on *:ACTION:*:#:{

set %tmp.chanyoutube $chan

unset %d

var %i 1

while ([ $chr(36) $+ [ %i ] ]) {

if (youtube.com/watch?v= isin [ $chr(36) $+ [ %i ] ]) { sockclose youtube | xconnection [ $chr(36) $+ [ %i ] ] }

inc %i

}

}


on *:AWAY:*:#:{

set %tmp.chanyoutube $chan

unset %d

var %i 1

while ([ $chr(36) $+ [ %i ] ]) {

if (youtube.com/watch?v= isin [ $chr(36) $+ [ %i ] ]) { sockclose youtube | xconnection [ $chr(36) $+ [ %i ] ] }

inc %i

}

}


#youtube1 end


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...