diff --git a/commands/search/neopet.js b/commands/search/neopet.js index 686a3142..38022d8e 100644 --- a/commands/search/neopet.js +++ b/commands/search/neopet.js @@ -22,6 +22,16 @@ module.exports = class NeopetCommand extends Command { reason: 'Pet Image Data, Original Game' } ], + flags: [ + { + key: 'portrait', + description: 'Gets a small portrait of the pet.' + }, + { + key: 'p', + description: 'Alias for portrait.' + } + ], args: [ { key: 'pet', @@ -41,8 +51,8 @@ module.exports = class NeopetCommand extends Command { }); } - async run(msg, { pet, mood }) { - const petImg = await petImage(pet, { mood, size: 5 }); + async run(msg, { pet, mood, flags }) { + const petImg = await petImage(pet, { mood, size: flags.portrait ? 6 : 5 }); if (!petImg) return msg.say('Could not find any results.'); return msg.say({ files: [{ attachment: petImg.data, name: `${pet}-${mood}.png` }] }); } diff --git a/package.json b/package.json index de58fb37..aa2161f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "159.0.1", + "version": "159.1.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {