From 6062476fd08ab05b5dd47ec6b96ff859a4ebf090 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Mon, 7 Aug 2023 00:04:22 +0200 Subject: [PATCH] use songlink api key --- commands/message/search/audio.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/message/search/audio.js b/commands/message/search/audio.js index e49ecd8..2285585 100644 --- a/commands/message/search/audio.js +++ b/commands/message/search/audio.js @@ -32,6 +32,10 @@ module.exports = { let urls = msg.content.match(urlr) if (urls) { let songlink = await superagent.get(`https://api.song.link/v1-alpha.1/links?url=${encodeURIComponent(urls[0])}`) + .query({ + url: urls[0], + key: process.env.SONGLINK_KEY + }) let song = songlink.body.entitiesByUniqueId[songlink.body.entityUniqueId] let btns = renderMusicButtons(songlink.body.linksByPlatform)