mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Roman numerals up to 4,999,999, quiz defaults to multiple
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"M̅": 1000000,
|
||||||
|
"D̅": 500000,
|
||||||
|
"C̅": 100000,
|
||||||
|
"L̅": 50000,
|
||||||
|
"X̅": 10000,
|
||||||
|
"V̅": 5000,
|
||||||
"M": 1000,
|
"M": 1000,
|
||||||
"CM": 900,
|
"CM": 900,
|
||||||
"D": 500,
|
"D": 500,
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ module.exports = class QuizCommand extends Command {
|
|||||||
key: 'type',
|
key: 'type',
|
||||||
prompt: `Which type of question would you like to have? Either ${list(types, 'or')}.`,
|
prompt: `Which type of question would you like to have? Either ${list(types, 'or')}.`,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
default: 'multiple',
|
||||||
validate: type => {
|
validate: type => {
|
||||||
if (types.includes(type.toLowerCase())) return true;
|
if (types.includes(type.toLowerCase())) return true;
|
||||||
return `Invalid type, please enter either ${list(types, 'or')}.`;
|
return `Invalid type, please enter either ${list(types, 'or')}.`;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ module.exports = class RomanNumeralCommand extends Command {
|
|||||||
prompt: 'What number would you like to convert to roman numerals?',
|
prompt: 'What number would you like to convert to roman numerals?',
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 4999
|
max: 4999999
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "66.4.1",
|
"version": "66.4.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user