Lyrics
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Jun 12, 2009 |
| Last Updated | Jun 12, 2009 |
| Tags | . lyric lyrics mirc msl music name script song www.lyrics.com |
Introduction
8:16(08) PM <@TheNitelyfe> @lyrics kanye west
8:16(10) PM <@BluePrint> [ Lyrics ] "kanye west" - Songname: Love Lockdown - Artist: Kanye West - URL: http://www.lyrics.com/artists/lyric/kanye-west-lyrics-love-lockdown
mIRC Snippet:
Lyrics
Posted on Jun 12, 2009 10:59 pm
Posted on Jun 12, 2009 10:59 pm
nice work
you can also do it like this as well
just one of many ways to do this script.
you can also do it like this as well
| Code: |
| on $*:TEXT:/^([!@.])lyrics\s(.+)/Si:#: { if (!$($+(%,lyricsflood,$nick),2)) { set -u3 $+(%,lyricsflood,$nick) on sockopen lyrics www.lyrics.com 80 sockmark lyrics $+($replace($regml(2),$chr(32),+),|,$iif($regml(1) == @,msg #,.notice $nick)) } } on *:sockopen:lyrics: { sockwrite -nt $sockname GET $+(/search.php?keyword=,$gettok($sock(lyrics).mark,1,124),&what=all&x=0&y=0) HTTP/1.1 sockwrite -nt $sockname Host: $+(www.lyrics.com,$str($crlf,2)) } on *:SOCKREAD:lyrics: { var %lyrics | sockread %lyrics if ($regex(%lyrics,/<td><a href="http:\/\/www.lyrics.com\/artists\/lyric\/(.+)">(.+)<\/a><\/td>/)) { sockmark lyrics $addtok($sock(lyrics).mark,12 $chr(91) 14Lyrics12 $chr(93) 12 $replace($qt($gettok($sock(lyrics).mark,1,124)),+,$chr(32)) - 14Songname:12 $regml(2) $chr(124) - 14URL:12 $+(http://www.lyrics.com/artists/lyric/,$regml(1)),124) } if ($regex(%lyrics,/<td><a href="http:\/\/www.lyrics.com\/artists\/name\/.+">(.+)<\/a><\/td>/)) { $gettok($sock(lyrics).mark,2,124) $gettok($sock(lyrics).mark,3,124) - 14Artist:12 $regml(1) $gettok($sock(lyrics).mark,4,124) | sockclose lyrics } } |
mIRC Snippet:
Lyrics
Posted on Jun 13, 2009 7:38 am
Posted on Jun 13, 2009 7:38 am
hi
no need for regex
no need for regex
| Code: |
| on $*:TEXT:/^([!@.])lyrics\s(.+)/Si:#:{ if (!$($+(%,lyricsflood,$nick),2)) { set -u3 $+(%,lyricsflood,$nick) 1 if !$sock(lyrics) { sockopen lyrics www.lyrics.com 80 sockmark lyrics $+(www.lyrics.com,`,$replace($2-,$chr(32),+),`,$2-,`,$iif($regml(1) == @,msg #,.notice $nick)) } else msg # plz wait $nick ... } } on *:sockopen:lyrics:{ tokenize 96 $sock(lyrics).mark sockwrite -n $sockname GET $+(/search.php?keyword=,$2,&what=all&x=0&y=0) HTTP/1.1 sockwrite -n $sockname Host: $1 sockwrite -n $sockname $crlf } on *:SOCKREAD:lyrics: { var %lyrics | sockread %lyrics if $findtok(%lyrics,td>,1,60) { if ($wildtok(%lyrics,http://www.lyrics.com/artists/name/*,1,34)) { var %artist $remove($gettok(%lyrics,3,62),</a) tokenize 96 $sock(lyrics).mark $4 12[14 Lyrics 12] 14 $+ $qt(12 $+ $3 $+ 14) - 14Songname:12 %song - 14Artist:12 %artist - 14URL:12 %link unset %song %link sockclose lyrics } if ($wildtok(%lyrics,http://www.lyrics.com/artists/lyric/*,1,34)) { set %song $remove($gettok(%lyrics,3,62),</a) set %link $v1 } } } |
mIRC Snippet:
Lyrics
Posted on Jun 13, 2009 9:40 am
Posted on Jun 13, 2009 9:40 am
@WorldDMT as i said in my comment "it's just one of many ways to do this script" his is one way mine is another as well is ur's. So no need to say no need for regex, cuz one can say say no need for $wildtok as well no need for setting global vars. It's just ur opinion nothing more.
@drcheese load it into the remotes of ur bot or you can load it in ur remotes for others to trigger.
@drcheese load it into the remotes of ur bot or you can load it in ur remotes for others to trigger.
mIRC Snippet:
Lyrics
Posted on Jun 15, 2009 7:36 pm
Posted on Jun 15, 2009 7:36 pm
BURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRN






