forked from Supositware/Haha-Yes
removed sendfiles
This commit is contained in:
parent
afca03d4b3
commit
98f3c06771
1 changed files with 3 additions and 3 deletions
|
@ -39,8 +39,8 @@ module.exports = class faceappCommand extends Command {
|
||||||
message.say('Cant recognize the face')
|
message.say('Cant recognize the face')
|
||||||
console.error(error)
|
console.error(error)
|
||||||
})
|
})
|
||||||
message.channel.sendFile(image)
|
return message.channel.send({files: [image]});
|
||||||
} else {
|
} else {
|
||||||
let face = type.toLowerCase();
|
let face = type.toLowerCase();
|
||||||
let { body } = await superagent.get(Attachment[0].url)
|
let { body } = await superagent.get(Attachment[0].url)
|
||||||
let image = await faceapp.process(body, face)
|
let image = await faceapp.process(body, face)
|
||||||
|
@ -48,6 +48,6 @@ module.exports = class faceappCommand extends Command {
|
||||||
message.say('Cant recognize the face')
|
message.say('Cant recognize the face')
|
||||||
console.error(error)
|
console.error(error)
|
||||||
})
|
})
|
||||||
message.channel.sendFile(image)
|
return message.channel.send({files: [image]});
|
||||||
}
|
}
|
||||||
}};
|
}};
|
Loading…
Reference in a new issue