mIRC Homepage
Hey,

Current Code

Code:
on *:Text:!song:#:{
  msg #  Current Song: $read(C:\Users\Exuviax\Desktop\Stream Recordings\Stream Stuff\Snip\Snip.txt) http://www.di.fm/clubdubstep
}



Out-put

Code:
Current Song: Creonic - Salvation (Original Mix) (Club Dubstep - Digitally Imported Premium) http://www.di.fm/clubdubstep


As you can see, it's a pretty long message, is there a way I can do a sort of scrapper? So that it will auto remove the "(Club Dubstep - Digitally Imported Premium)" That text is always the same, apart from the Title and Artist changing with the song. So I would just like to make sure my bot doesn't read it out.

Thanks so much!
use $remove
Code:
on *:Text:!song:#:{
  msg #  Current Song: $remove($read(C:\Users\Exuviax\Desktop\Stream Recordings\Stream Stuff\Snip\Snip.txt), $chr(40) $+ Club Dubstep - Digitally Imported Premium $+ $chr(41)) http://www.di.fm/clubdubstep
}


note: $chr(40) = (
and $chr(41) = )

I'd remove that link at the end myself.
I couldn't get that code to work for some reason, but I managed to do this one

Code:
on *:Text:!song:#:{
  var %song $read(C:\Users\Randy\Desktop\Stream Recordings\Stream Stuff\Snip\Snip.txt)
  var %cheese $remove(%song, $chr(40) $+ Club Dubstep - Digitally Imported Premium $+ $chr(41))
  msg #  Current Song:  %cheese http://www.di.fm/clubdubstep
} 


I should book out a day where I just read the entirety of the Help section laugh
© mIRC Discussion Forums