moved passes to tokens.json

This commit is contained in:
bdistin 2016-09-11 13:27:17 -05:00
parent 39d2e15c60
commit 99a45e5835
2 changed files with 3 additions and 2 deletions

View file

@ -22,7 +22,7 @@ const commands = {
msg.member.voiceChannel.leave();
});
msg.channel.sendMessage(`Playing: **${song.title}** as requested by: **${song.requester}**`);
dispatcher = myVoiceConnection.playStream(yt(song.url, { audioonly: true }), { passes : 1 }); //You can increase passes to reduce packetloss, if you have the spare bandwidth; should be lossless with 3-5 passes but it increase your upload by 3-5 times
dispatcher = myVoiceConnection.playStream(yt(song.url, { audioonly: true }), { passes : tokens.passes });
let collector = msg.channel.createCollector(m => m);
collector.on('message', m => {
if (m.content.startsWith(tokens.prefix + 'pause')) {

View file

@ -1,5 +1,6 @@
{
"d_token" : "YOUR DISCORD APP TOKEN",
"adminID" : "YOUR DISCORD USER ID",
"prefix" : "++"
"prefix" : "++",
"passes" : 1 //can be increased to reduce packetloss at the expense of upload bandwidth, 4-5 should be lossless at the expense of 4-5x upload
}