Basically this mp3 player is best suited for a script bot, c&p into remotes (alt+r)and type /mp3 and enter your playlist directory .. once you have set this.. type !play to play and spam your song, !stop to stop the song etc
Where it says 'if ($nick == ) {' Enter the nick which you want to allow access to these commands, most probably your own nickname.
The script still needs some minor improvements, so feel free to suggest on how to do so, in the mean time i'll keep working on it.
alias mp3 {
set %mp3dir $$sdir=" Set Mp3 Directory: "
write -c mp3.txt
noop $findfile(%mp3dir,*.mp3,0,write mp3.txt $1-)
}
on $*:text:/!(play|stop|pause|resume|random)/Si:*:{
if ($nick == <NICKNAME>) {
if ($isfile(mp3.txt)) {
var %target = $iif($target ischan,$chan,$nick)
if ($1 == !random) { splay $read(mp3.txt) | describe %target np random:4 $nopath($insong.fname) }
if ($1 == !play) { splay $read(mp3.txt,$2) | describe %target np:4 $nopath($read(mp3.txt,$2)) }
if ($1 == !stop) {
if ($insong) { splay stop | msg %target 6...4 Song Stopped 6... }
else { msg %target Song not started }
}
if ($1 == !pause) {
if ($insong) && (!$insong.pause) { splay pause | msg %target 6... 4Pausing song6... }
}
if ($1 == !resume) {
if ($insong) && ($insong.pause) { splay resume | msg %target 6... 4Resuming song6... }
}
}
}