mirror of
https://github.com/Alee14/OhGodMusicBot.git
synced 2025-01-22 09:22:06 -05:00
moved passes to tokens.json
This commit is contained in:
parent
39d2e15c60
commit
99a45e5835
2 changed files with 3 additions and 2 deletions
|
@ -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')) {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue