Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Play(connection , message)
- {
- var server = servers[message.guild.id];
- server.dipatcher = connection.playStream(YTDL(server.queue[0], {filter : "audioonly"}));
- server.dipatcher.on("end", function (){
- if(server.queue[0] && server.queue.length > 1)
- {
- server.queue.shift();
- Play(connection,message);
- } else {
- server.queue.shift();
- connection.disconnect();
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement