From aa960f0c00819b2339d382077be78fccc567a002 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 18 Apr 2022 22:52:48 -0600 Subject: [PATCH] music: actually add the end event --- src/modules/music.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/music.js b/src/modules/music.js index 8dbf5e9..f14a397 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -141,6 +141,7 @@ async function createVoiceConnection(guild_id, voice_id, text_id) { voiceStorage.delete(guild_id); } }; + connection.on("end", connection._music_eventEnd); voiceStorage.set(guild_id, connection); @@ -288,7 +289,7 @@ async function enqueue( textChannel.createMessage({ embeds: [ { - title: `:musical_note Now Playing`, + title: `:musical_note: Now Playing`, color: 0x18e3c8, fields: [ { @@ -396,7 +397,7 @@ command.callback = async function (msg, line) { type = "sc"; } else if (REGEX_FILE.test(argStr)) { type = "file"; - } + } else if if (type != null) { if (playlist) {