mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2014
Posts: 65
E
Exuviax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Mar 2014
Posts: 65
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!


I do things with stuff that makes other things do stuff.
Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
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.

Last edited by Belhifet; 27/09/14 06:05 AM.
Joined: Mar 2014
Posts: 65
E
Exuviax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Mar 2014
Posts: 65
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


I do things with stuff that makes other things do stuff.

Link Copied to Clipboard