From b1304b99568b77b33451264e8942fe747a996513 Mon Sep 17 00:00:00 2001 From: lucmsilva651 Date: Sat, 7 Sep 2024 13:08:57 -0300 Subject: [PATCH] Put an identifiable user-agent to comply with Last.fm API --- commands/lastfm.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/lastfm.js b/commands/lastfm.js index b51e166..f670992 100644 --- a/commands/lastfm.js +++ b/commands/lastfm.js @@ -25,6 +25,9 @@ module.exports = (bot) => { api_key: Config.lastKey, format: 'json', limit: 1 + }, + headers: { + 'User-Agent': "lastfm-node" } });