function getRandomMusic(queue, msg) {
    fs.readFile('./data/autoplaylist.txt', 'utf8', function(err, data) {
        if (err) throw err;
        con('OK: autoplaylist.txt');
        var random = data.split('\n');
        var num = getRandomInt(random.length);
        con(random[num])
        var url = random[num];
        msg.author.username = "AUTOPLAYLIST";
        play(msg, queue, url)
    });
}
function getRandomMusic(queue, msg) {
    fs.readFile('./data/autoplaylist.txt', 'utf8', function(err, data) {
        if (err) throw err;
        con('OK: autoplaylist.txt');
        var random = data.split('\n');
        var num = getRandomInt(random.length);
        con(random[num])
        var url = random[num];
        msg.author.username = "AUTOPLAYLIST";
        play(msg, queue, url)
    });
}
function getRandomMusic ( queue , msg ) { fs . readFile ( './data/autoplaylist.txt' , 'utf8' , function ( err , data ) { if ( err ) throw err ; con ( 'OK: autoplaylist.txt' ) ; var random = data . split ( '\n' ) ; var num = getRandomInt ( random . length ) ; con ( random [ num ] ) var url = random [ num ] ; msg . author . username = "AUTOPLAYLIST" ; play ( msg , queue , url ) } ) ; }
Fix dis shit
Fix dis shit