diff --git a/config/custom_music.json b/config/custom_music.json index 567de96..e93e97d 100644 --- a/config/custom_music.json +++ b/config/custom_music.json @@ -31,6 +31,11 @@ "url": "https://s0.mateisr.com/files/colaj_manele.mp3", "callWords": ["colaj", "manele"], "emote": "🥁" + }, + { + "url": "https://www.youtube.com/watch?v=k85mRPqvMbE", + "callWords": ["crazy frog"], + "emote": "🐸" } ] } diff --git a/src/events/customTrackEvent.ts b/src/events/customTrackEvent.ts index 0413973..6e2e7bf 100644 --- a/src/events/customTrackEvent.ts +++ b/src/events/customTrackEvent.ts @@ -34,8 +34,7 @@ export default new Event("messageCreate", async (message: Message) => { )) as LavalinkResponse | null; if (!result || result.loadType == "empty" || result.loadType == "error") return; - const searchResult = result.data as Track[]; - const track = searchResult.shift(); + const track = result.data as Track; // Handle dispatcher const res = await client.manager.handleDispatcher({ guildId: guild.id,