From ed2d3368a1caf9c4037e62e8e559556a775528a1 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 20 Oct 2019 22:19:42 +0300 Subject: [PATCH] fix? --- funcs/play.js | 2 +- index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/funcs/play.js b/funcs/play.js index 84b06e8a..e89bfbd8 100644 --- a/funcs/play.js +++ b/funcs/play.js @@ -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.") { diff --git a/index.js b/index.js index 53adea2e..c6756b8b 100644 --- a/index.js +++ b/index.js @@ -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', };