This commit is contained in:
Daniel Odendahl Jr
2017-12-04 23:16:15 +00:00
parent 1735e1225f
commit 8b2eb4019c
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -22,7 +22,6 @@ module.exports = class SoundboardCommand extends Command {
key: 'sound',
prompt: `What sound would you like to play? Either ${list(Object.keys(sounds), 'or')}.`,
type: 'string',
default: () => Object.keys(sounds)[Math.floor(Math.random() * sounds.length)],
validate: sound => {
if (sounds[sound.toLowerCase()]) return true;
return `Invalid sound, please enter either ${list(Object.keys(sounds), 'or')}.`;