This commit is contained in:
Dragon Fire
2020-06-14 21:29:19 -04:00
parent d3d0f0e596
commit 37b62a0203
+1 -1
View File
@@ -56,7 +56,7 @@ module.exports = class SoundboardCommand extends Command {
if (sounds.includes(choice)) return true;
return `You provided an invalid sound. Please choose either ${list(sounds, 'or')}.`;
},
parse: sound => `${sound.toLowerCase()}.mp3`
parse: sound => `${sound.toLowerCase().replace(/ /g, '-')}.mp3`
}
]
});