From 9b458f5a9c0ecc666b3b93a39b5975e9d696847f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 28 Jun 2019 18:16:51 -0400 Subject: [PATCH] Fix --- commands/search/neopet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/neopet.js b/commands/search/neopet.js index d69b1d6d..ab8604a5 100644 --- a/commands/search/neopet.js +++ b/commands/search/neopet.js @@ -45,7 +45,7 @@ module.exports = class NeopetCommand extends Command { async run(msg, { pet, mood }) { try { - const { body } = await request.get(`http://pets.neopets.com/cpn/${encodeURIComponent(name)}/${mood}/5.png`); + const { body } = await request.get(`http://pets.neopets.com/cpn/${encodeURIComponent(pet)}/${mood}/5.png`); return msg.say({ files: [{ attachment: body, name: `${pet}-${mood}.png` }] }); } catch (err) { if (err.status === 404) return msg.say('Could not find any results.');