|
| Author |
Message |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Sun Mar 07, 2004 7:52 pm Post subject: |
|
|
i decided to post in commands because it is a command but not what most people on here will want
i got it from a friend(BRIAN) i havnt got a clue how to transform it...i been told its in php thanks
| Code: | | function lyrics($args='') {<br /> global $msnsb;<br /> <br /> if (trim($args)!='') {<br /> $msnsb->MSGSend(' Please wait... this may take a moment.');<br /> $gresult = implode ('', file("http://www.google.com/search?hl=en&lr=&num=5&ie=UTF-8&oe=UTF-8&safe=off&q=lyrics+".urlencode($args))); <br /> <br /> if ($gresult) {<br /> if (preg_match_all ("/<font size=-1 color=#ffffff>Results (.*)<\/b>\./sU", $gresult,$matches)) {<br /> $results =' Lyrics search results '. strip_tags($matches[1][0])."\*lazy*\n\*lazy*\n";<br /> }<br /> if (preg_match_all ("/<p class=g><a href=(.*)>(.*)<\/a>/sU", $gresult,$matches)) {<br /> for($i=0;$i<=4;$i++) {<br /> $matches[2][$i]=strip_tags(urldecode(str_replace("\*lazy*\n",' ',trim($matches[2][$i]))));<br /> $results.= ($i+1). '. ' . $matches[2][$i] . "\*lazy*\nLink: " . $matches[1][$i] . "\*lazy*\n\*lazy*\n";<br /> }<br /> } else {<br /> $results .='No matches found!';<br /> }<br /> $msnsb->MSGSend($results,$msnsb->_msgc_general);<br /> <br /> } else {<br /> $msnsb->MSGSend(' Error getting lyrics results', $msnsb->_msgc_error);<br /> }<br /> } else {<br /> $msnsb->MSGSend(" Lyrics Search:\*lazy*\nCommand: !lyrics <query>\*lazy*\nWhere <<br /> |
|
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Sun Mar 07, 2004 8:02 pm Post subject: |
|
|
| In the code all it does is add lyrics+There search so why not add annother google search and add lyrics+Search? etc..so on! |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Sun Mar 07, 2004 9:09 pm Post subject: |
|
|
| no it seachs for lyrics on a special page |
|
| Back to top |
|
 |
Keenie Almost An Agent

Joined: 31 Oct 2003 Posts: 1071
 
|
Posted: Sun Mar 07, 2004 10:57 pm Post subject: |
|
|
| Quote: | | http://www.google.com/search?hl=en&lr=&num=5&ie=UTF-8&oe=UTF-8&safe=off&q=lyrics+".urlencode($args))); |
no. it searches google. At least read the code |
|
| Back to top |
|
 |
Juzz Senior Member

Joined: 28 Feb 2004 Posts: 190 Location: NSw, australia.
   
|
Posted: Sun Mar 07, 2004 10:59 pm Post subject: |
|
|
| Quote: | | http://www.google.com/search?hl=en&lr=&num=5&ie=UTF-8&oe=UTF-8&safe=off&q=lyrics+".urlencode($args))); |
Search's google for lyrics  |
|
| Back to top |
|
 |
jeanhub Almost An Agent

Joined: 14 Feb 2004 Posts: 1138
 
|
Posted: Sun Mar 07, 2004 11:08 pm Post subject: |
|
|
This is php??? so it wont work with bot right??
sorry i am a little bit n00b |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Mon Mar 08, 2004 12:18 am Post subject: |
|
|
GOD DARNIT
ive made a right twat of ma self now well ive learnt sommat....look
should we close this topic |
|
| Back to top |
|
 |
|