First of all, Type /mp3 choose your mp3 folder then, type !RMP3 and Automatically Chooses a Song :P, if ya need to stop the song type !sstop :P Enjoy.
a bit updated..
Commands:
!rmp3
!SStop
!Pause
!resume
!mp3check
/mp3
/acheck
Enjoy :O
"""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""
"""Random MP3 By CharltonJ"""
"""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""
on *:INPUT:*:{
if ($1 == !rmp3) { splay $read(mp3.txt) | set %length $gmt($round($calc($nopath($insong.fname).length / 1000),0),HH:nn:ss) | msg $active Random Playing: 14(15 $+ $nopath($insong.fname) $+ 14) }
if ($1 == !SStop) { splay stop }
if ($1 == !pause) { splay Pause }
if ($1 == !resume) { splay resume }
if ($1 == !mp3check) { acheck }
}
alias acheck {
if (%mpz3 == exist?) { echo Okey mp3.txt Exists! }
else { echo mp3.txt Doesn't Exists! }
}
alias mp3 {
set %mp3dir $$sdir=" Set Mp3 Directory: "
write -c mp3.txt | set %mpz3 exist?
noop $findfile(%mp3dir,*.mp3,0,write mp3.txt $1-)
}
Not a bad little snippet but it\'s lacking more mp3 functions. How about adding an if event to check if the mp3.txt actually exists? I would add a pause/resume option to the snippet as well. I think that there is no need of the /set, why not use local variables? There is also no need of the / before the /msg while I\'m being extremely picky.