Random song requester for radio channels. Just save a list of songs in a text document and call it songlist.txt << Save to mIRC Directory
You should add the request trigger before the song in the text file. Eg.:
!r Artist - Song
Type /randsong will activate the script.
Change !r to your format.
URL to forum thread where it was started: http://www.hawkee.com/phpBB2/viewtopic.php?t=19696
[size=20]THANKYOU RusselB!!!![/size]
[size=15]Changelog[/size]
Change 1
Uses variables to avoid repeating songs twice in a row. Thank you Ayon
Added function for other users to request a song from your list, using !randsong.
menu channel, nicklist {
Request : randsong $?="Enter Artist and/or title of request"
}
alias randsong {
if $chan {
var %temp = $iif($1,$1-,$read(songlist.txt))
if (%prev.song == $readn) { echo -atg Error ... | halt }
set %prev.song $readn
msg $chan %temp
}
}
on *:TEXT:!randsong:#:.msg # $iif(!$2,$read(songlist.txt),$read(songlist.txt,w,$+(*,$2,*)))
@ Ayon - I see! It works, but a few lines down it can still request the song two lines down. I test ran it, and it works better than before. Thanks for your help. I guess we could get extensive with a ton of variables. Setting variables for each new song. It'd be messy, and I'm sure there's a way around it, but... This method still works. Thnx!