mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
@@ -52,7 +52,7 @@ module.exports = class NeopetCommand extends Command {
|
||||
}
|
||||
|
||||
async run(msg, { pet, mood, flags }) {
|
||||
const petImg = await petImage(pet, { mood, size: (flags.portrait || flags.p) ? 6 : 5 });
|
||||
const petImg = await petImage(pet, { mood, size: flags.portrait || flags.p ? 6 : 5 });
|
||||
if (!petImg) return msg.say('Could not find any results.');
|
||||
return msg.say({ files: [{ attachment: petImg.data, name: `${pet}-${mood}.png` }] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user