1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 00:23:17 +00:00
This commit is contained in:
MatteZ02 2019-10-20 22:19:42 +03:00
parent b6f7ddbbf9
commit ed2d3368a1
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ module.exports = async function (guild, song, client, message, seek) {
client.queue.delete(guild.id); client.queue.delete(guild.id);
return; return;
} }
const dispatcher = message.guild.voiceConnection const dispatcher = serverQueue.connection
.playStream(ytdl(song.url, { filter: "audio", highWaterMark: 1 << 25 }), { seek: seek, bitrate: 1024, passes: 10, volume: 1 }) .playStream(ytdl(song.url, { filter: "audio", highWaterMark: 1 << 25 }), { seek: seek, bitrate: 1024, passes: 10, volume: 1 })
.on("end", reason => { .on("end", reason => {
if (reason === "Stream is not generating quickly enough.") { if (reason === "Stream is not generating quickly enough.") {

View File

@ -34,8 +34,8 @@ client.funcs.msToTime = require('./funcs/msToTime.js');
client.funcs.dbget = require('./funcs/dbget.js'); client.funcs.dbget = require('./funcs/dbget.js');
client.config = { client.config = {
token: process.env.TOKEN, token: process.env.TESTTOKEN,
apikey: process.env.API_KEY, apikey: process.env.API_KEY2,
prefix: '>', prefix: '>',
test: 'success', test: 'success',
}; };