User Control Panel
Advertisements

HELP US, HELP YOU!

lyrics command

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Mar 07, 2004 7:52 pm    Post subject: Reply with quote

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
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Sun Mar 07, 2004 8:02 pm    Post subject: Reply with quote

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
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Mar 07, 2004 9:09 pm    Post subject: Reply with quote

no it seachs for lyrics on a special page
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Sun Mar 07, 2004 10:57 pm    Post subject: Reply with quote

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
Senior Member


Joined: 28 Feb 2004
Posts: 190
Location: NSw, australia.
Reputation: 30.4Reputation: 30.4Reputation: 30.4

PostPosted: Sun Mar 07, 2004 10:59 pm    Post subject: Reply with quote

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 Surprised
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Sun Mar 07, 2004 11:08 pm    Post subject: Reply with quote

This is php??? so it wont work with bot right??


sorry i am a little bit n00b
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Mon Mar 08, 2004 12:18 am    Post subject: Reply with quote

GOD DARNIT

ive made a right twat of ma self now
well ive learnt sommat....look Wink

should we close this topic
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group