mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = class EmojiFaceCommand extends Command {
|
||||
{
|
||||
key: 'emoji',
|
||||
prompt: 'What emoji do you want to draw?',
|
||||
type: 'default-emoji|custom-emoji'
|
||||
type: 'custom-emoji|default-emoji'
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
|
||||
@@ -34,7 +34,7 @@ module.exports = class ConnectFourCommand extends Command {
|
||||
{
|
||||
key: 'color',
|
||||
prompt: `What color do you want to be? Either an emoji or one of ${list(Object.keys(colors), 'or')}.`,
|
||||
type: 'default-emoji|custom-emoji|string',
|
||||
type: 'custom-emoji|default-emoji|string',
|
||||
validate: (color, msg) => {
|
||||
const hasEmoji = new RegExp(`^(?:${emojiRegex().toString()})$`).test(color);
|
||||
const hasCustom = color.match(customEmojiRegex);
|
||||
|
||||
@@ -21,7 +21,7 @@ module.exports = class EmojiImageCommand extends Command {
|
||||
{
|
||||
key: 'emoji',
|
||||
prompt: 'Which emoji would you like to get the image of?',
|
||||
type: 'default-emoji|custom-emoji'
|
||||
type: 'custom-emoji|default-emoji'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user