woops i forgot that
This commit is contained in:
parent
064f6702b7
commit
b1dc614667
1 changed files with 7 additions and 2 deletions
|
@ -13,14 +13,19 @@ module.exports = class faceappCommand extends Command {
|
||||||
key: 'url',
|
key: 'url',
|
||||||
prompt: 'Wich image would you want to process',
|
prompt: 'Wich image would you want to process',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'type',
|
||||||
|
prompt: 'How the face should change ?',
|
||||||
|
type: 'string',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message, { url }) {
|
async run(message, { url, type }) {
|
||||||
let { body } = await superagent.get(url)
|
let { body } = await superagent.get(url)
|
||||||
let image = await faceapp.process(body, 'hot')
|
let image = await faceapp.process(body, type)
|
||||||
message.channel.sendFile(image)
|
message.channel.sendFile(image)
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in a new issue