Fix Soundboard

This commit is contained in:
Daniel Odendahl Jr
2017-03-25 07:17:48 +00:00
parent 4b796083dc
commit 9791c0115c
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = class SoundBoardCommand extends commando.Command {
prompt: 'What sound do you want me to play?',
type: 'string',
validate: sound => {
if (sound.avaliable[sound.toLowerCase()] || sound.toLowerCase() === 'list') {
if (sounds.avaliable[sound.toLowerCase()] || sound.toLowerCase() === 'list') {
return true;
}
return 'Sound not found. Enter `list` to view a list of sounds.';