From 37de428e09918353c1d9eb76aff3bac1bfa31c91 Mon Sep 17 00:00:00 2001 From: Mateus Andriola Date: Mon, 28 Jun 2021 19:13:24 -0300 Subject: [PATCH] remove double playing verification --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 270c647..4774211 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ import 'dotenv/config' import Discord from 'discord.js' import YTDL from 'ytdl-core' -const url = 'https://www.youtube.com/watch?v=2zpty96Hu60' +const url = 'https://www.youtube.com/watch?v=1jO2wSpAoxA' const channelId = '836004917973614666'; let playing = false @@ -36,7 +36,7 @@ const connect = async () => { async function replay() { const voiceConnection = await connect(); try { - while (!playing) { + while (true) { await play(voiceConnection); console.log(playing) }