mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix Everything
This commit is contained in:
@@ -18,11 +18,8 @@ module.exports = class XKCDCommand extends Command {
|
||||
type: 'string',
|
||||
default: 'random',
|
||||
validate: (type) => {
|
||||
if (['today', 'random'].includes(type.toLowerCase())) {
|
||||
return true;
|
||||
} else {
|
||||
return 'Please enter either `today` or `random`';
|
||||
}
|
||||
if (['today', 'random'].includes(type.toLowerCase())) return true;
|
||||
else return 'Please enter either `today` or `random`';
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user