mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Fix challenger flags
This commit is contained in:
@@ -53,7 +53,7 @@ module.exports = class ChallengerCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async run(msg, { image, flags }) {
|
async run(msg, { image, flags }) {
|
||||||
const silhouetted = flags.show || flags.s;
|
const silhouetted = !(flags.show || flags.s);
|
||||||
const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'challenger.png'));
|
const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'challenger.png'));
|
||||||
const { body } = await request.get(image);
|
const { body } = await request.get(image);
|
||||||
const data = await loadImage(body);
|
const data = await loadImage(body);
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ module.exports = class ApplesToApplesCommand extends Command {
|
|||||||
type: 'integer',
|
type: 'integer',
|
||||||
max: 20,
|
max: 20,
|
||||||
min: 1
|
min: 1
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user