From 2ca0306928588b699e1179431394df441a28622b Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 15 Mar 2020 22:09:00 +0200 Subject: [PATCH] ffmpeg test --- struct/config/config.js | 1 + struct/funcs/ffmpeg.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/struct/config/config.js b/struct/config/config.js index cc4a3883..68ffe577 100644 --- a/struct/config/config.js +++ b/struct/config/config.js @@ -5,6 +5,7 @@ module.exports = { devToken: process.env.DEVTOKEN, dblKey: process.env.DBLKEY, api_key: process.env.GOOGLE_API_KEY, + testServer: "489111553321336832", debug_channel: "634718645188034560", primary_test_channel: "617633098296721409", secondary_test_channel: "570531724002328577", diff --git a/struct/funcs/ffmpeg.js b/struct/funcs/ffmpeg.js index 8ae5fb27..0ed742ba 100644 --- a/struct/funcs/ffmpeg.js +++ b/struct/funcs/ffmpeg.js @@ -1,5 +1,5 @@ module.exports = async function (client) { - if (!client.guild.find('489111553321336832')) return; + if (!client.guilds.cache.has(client.config.testServer)) return; try { await client.channels.fetch(client.config.secondary_test_channel) .then(x => x.join());