mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Remove 'list' from validators
This commit is contained in:
@@ -115,7 +115,7 @@ module.exports = class MemeCommand extends commando.Command {
|
||||
prompt: 'What meme type do you want to use?',
|
||||
type: 'string',
|
||||
validate: type => {
|
||||
if (memecodes[type.toLowerCase()] || type.toLowerCase() === 'list') {
|
||||
if (memecodes[type.toLowerCase()]) {
|
||||
return true;
|
||||
}
|
||||
return 'Please enter a valid meme type. Use `;help meme` to view a list of types.';
|
||||
|
||||
@@ -20,7 +20,7 @@ module.exports = class SoundBoardCommand extends commando.Command {
|
||||
prompt: 'What sound do you want me to play?',
|
||||
type: 'string',
|
||||
validate: sound => {
|
||||
if (sounds.avaliable[sound.toLowerCase()] || sound.toLowerCase() === 'list') {
|
||||
if (sounds.avaliable[sound.toLowerCase()]) {
|
||||
return true;
|
||||
}
|
||||
return 'Sound not found. Use `;help soundboard` to view a list of sounds.';
|
||||
|
||||
@@ -123,7 +123,7 @@ module.exports = class TranslateCommand extends commando.Command {
|
||||
prompt: 'What language would you like to translate to?',
|
||||
type: 'string',
|
||||
validate: to => {
|
||||
if (languages[to.toLowerCase()] || to.toLowerCase() === 'list') {
|
||||
if (languages[to.toLowerCase()]) {
|
||||
return true;
|
||||
}
|
||||
return 'Please enter a valid language code. Use `;help translate` for a list of codes.';
|
||||
|
||||
Reference in New Issue
Block a user