forked from Supositware/Haha-Yes
wont show error if not oneof the type
This commit is contained in:
parent
b4fc4e6357
commit
c07739115a
1 changed files with 5 additions and 4 deletions
|
@ -16,8 +16,9 @@ module.exports = class faceappCommand extends Command {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'type',
|
key: 'type',
|
||||||
prompt: 'How the face should change ?',
|
prompt: 'How the face should change ? (default to female)',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
oneOf: ["no-filter", "smile", "smile_2", "hot", "old", "young", "hollywood", "fun_glasses", "hitman", "mustache_free", "pan", "heisenberg", "female", "female_2", "male", "impression", "goatee", "mustache", "hipster", "lion", "bangs", "glasses", "wave", "makeup"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -30,6 +31,6 @@ module.exports = class faceappCommand extends Command {
|
||||||
let image = await faceapp.process(body, face)
|
let image = await faceapp.process(body, face)
|
||||||
message.channel.sendFile(image)
|
message.channel.sendFile(image)
|
||||||
} else
|
} else
|
||||||
message.say("You need to input a link")
|
message.say("You need to input a link")
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in a new issue