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
+2 -2
View File
@@ -1,4 +1,4 @@
[
{
"airhorn": "airhorn.mp3",
"ayaya": "ayaya.mp3",
"cat": "cat.mp3",
@@ -19,4 +19,4 @@
"woohoo": "woohoo.mp3",
"wumbo": "wumbo.mp3",
"zelda chest": "zelda-chest.mp3"
]
}
-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')}.`;