denikson 6 years ago
parent
commit
3d9b083dbf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -142,7 +142,7 @@ function faceMorph(message) {
     if(Math.random() > probValue.value())
         return;
 
-    let imageAttachment = message.attachments.find(v => isImage(v.filename));
+    let imageAttachment = message.attachments.find(v => isValidImage(v.filename));
     processFaceSwap(message, imageAttachment.url).catch(err => console.log(`Failed to run faceapp because ${err}`));
 }