1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 01:21:56 +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);
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 })
.on("end", reason => {
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.config = {
token: process.env.TOKEN,
apikey: process.env.API_KEY,
token: process.env.TESTTOKEN,
apikey: process.env.API_KEY2,
prefix: '>',
test: 'success',
};