From f91f277a30a081cde95805bf39adeb835be98c3f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 4 Dec 2022 01:55:58 -0500 Subject: Added repeat toggle; Did some optiminizations to the code --- backend/PlayAudio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/PlayAudio.js') diff --git a/backend/PlayAudio.js b/backend/PlayAudio.js index 3ae2b91..d698798 100644 --- a/backend/PlayAudio.js +++ b/backend/PlayAudio.js @@ -77,7 +77,7 @@ export async function playAudio(bot) { } const statusEmbed = new EmbedBuilder(); - if (metadataEmpty === true) { + if (metadataEmpty) { statusEmbed.setTitle('Now Playing'); statusEmbed.addFields( { name: 'Title', value: audio }, -- cgit v1.2.3