forked from Supositware/Haha-Yes
fixed it a little
This commit is contained in:
parent
70df93f344
commit
5cee8a33c1
1 changed files with 2 additions and 7 deletions
|
@ -9,11 +9,6 @@ module.exports = class faceappCommand extends Command {
|
||||||
memberName: 'face',
|
memberName: 'face',
|
||||||
description: `use faceapp to change the face of someone, Here the available filter https://goo.gl/5LLbJJ`,
|
description: `use faceapp to change the face of someone, Here the available filter https://goo.gl/5LLbJJ`,
|
||||||
args: [
|
args: [
|
||||||
{
|
|
||||||
key: 'url',
|
|
||||||
prompt: 'Wich image would you want to process',
|
|
||||||
type: 'string',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 'type',
|
key: 'type',
|
||||||
prompt: 'How the face should change ? (default to female)',
|
prompt: 'How the face should change ? (default to female)',
|
||||||
|
@ -25,9 +20,9 @@ module.exports = class faceappCommand extends Command {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message, { url, type }) {
|
async run(message, { type }) {
|
||||||
|
|
||||||
var Attachment = (message.attachments).array();
|
let Attachment = (message.attachments).array();
|
||||||
|
|
||||||
let face = type.toLowerCase();
|
let face = type.toLowerCase();
|
||||||
let { body } = await superagent.get(Attachment[0].url)
|
let { body } = await superagent.get(Attachment[0].url)
|
||||||
|
|
Loading…
Reference in a new issue