This commit is contained in:
Dragon Fire
2024-03-23 21:28:50 -04:00
parent df0e1cf622
commit 00e90222a9
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = class EyesCommand extends Command {
async run(msg, { image }) {
const eyes = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'eyes.png'));
const imgData = await request.get(image);
const faces = await this.client.detectFaces(imgData);
const faces = await this.client.detectFaces(imgData.body);
if (!faces) return msg.reply('There are no faces in this image.');
if (faces === 'size') return msg.reply('This image is too large.');
const base = await loadImage(imgData.body);