This Google script is activated by typing !google <anything you want to Google>
A couple days project, it comes out with color, to install, copy all of the script text and paste it into a new remote in your YBbot mIRC script editor and go "save as" and save it in the Scripts folder as name google.mrc Thnx all
;YBbot IRC<BR>;google search script v0.01<BR>;Script by: MageOfTyr<BR>;Email me at mage_of_tyr@windowslive.com<BR><BR>;Dialog<BR>#google on<BR>on *:text:*google*:#: {<BR> if $1 == %c $+ google && $2- { set %google.num 0 | set %google.channel $chan | set %google.suche $replace($ifmatch,$chr(32),$chr(43)) | sockclose google | sockopen google www.google.com 80 }<BR> elseif $1 == %c $+ google { msg $chan Erm... I've no idea what to search for. Use %c $+ google keyword(s)! }<BR>}<BR>on *:sockopen:google: {<BR> if %google.max.results == $null { set %google.max.results 3 }<BR> sockwrite -n $sockname GET $+(/search?sourceid=navclient&hl=en&ie=UTF-8&rls=GGLD,GGLD:2004-04,GGLD:en&q=,%google.suche) HTTP/1.1<BR> sockwrite -n $sockname Host: www.google.com<BR> sockwrite -n $sockname $crlf<BR>}<BR>on *:sockread:google: {<BR> $event %google.tmp<BR> if ($regex(%google.tmp,/<h2 class=.*><a href="(.*)" class=l>.*<b>/)) { $+(.timer.google,%google.num) 1 %google.num msg %google.channel 15*** 12G4o8o12g9l4e: 3 $regml(1) | inc %google.num 1 }<BR> if (%google.num == %google.max.results) { sockclose google | unset %google* }<BR>}<BR>#google end
google.mrc (1.09K)
Number of downloads: 261

Sign In
Register
Help





MultiQuote

