mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 00:09:08 +02:00
Prevent Roman Numerals from being below one
This commit is contained in:
@@ -14,8 +14,8 @@ module.exports = class RomanCommand extends commando.Command {
|
|||||||
prompt: 'What do you want to convert to Roman?',
|
prompt: 'What do you want to convert to Roman?',
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
validate: number => {
|
validate: number => {
|
||||||
if (number > 1000000) {
|
if (number > 1000000 && number < 0) {
|
||||||
return 'Please enter a number below one million.';
|
return 'Please enter a number below one million and above zero.';
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user