From 85b06c3dbc7671eb960eb721af5fb5282ef06108 Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Sun, 20 Jul 2025 01:14:37 -0400 Subject: [PATCH] Fix lint --- commands/search/neopet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/search/neopet.js b/commands/search/neopet.js index 74b4e21a..c367e180 100644 --- a/commands/search/neopet.js +++ b/commands/search/neopet.js @@ -44,9 +44,10 @@ module.exports = class NeopetCommand extends Command { async run(msg, { pet, mood }) { try { + const agent = new UserAgent(); const { body } = await request .get(`http://pets.neopets.com/cpn/${encodeURIComponent(pet)}/${mood}/5.png`) - .set({ 'User-Agent': (new UserAgent()).toString() }); + .set({ 'User-Agent': agent.toString() }); return msg.say({ files: [{ attachment: body, name: `${pet}-${mood}.png` }] }); } catch (err) { if (err.status === 404) return msg.say('Could not find any results.');