diff --git a/commands/random/soundboard.js b/commands/random/soundboard.js index 6b3e1772..3828320c 100644 --- a/commands/random/soundboard.js +++ b/commands/random/soundboard.js @@ -19,7 +19,7 @@ class SoundBoardCommand extends commando.Command { } console.log("[Command] " + message.content); if(message.channel.type !== 'dm') { - if(!message.channel.permissionsFor(this.client.user).hasPermission('CONNECT' && 'SPEAK')) { + if(!message.channel.permissionsFor(this.client.user).hasPermission(['CONNECT', 'SPEAK'])) { message.channel.send(':x: Error! In order to do this command, you must give me the permissions to "Connect" and "Speak"!'); } else { let voiceChannel = message.member.voiceChannel; @@ -30,7 +30,7 @@ class SoundBoardCommand extends commando.Command { if(soundToPlay === "") { message.channel.send(':x: Error! No sound set. Please use ;soundboard list to see a list of sounds you can play.'); } else if(soundToPlay === 'list') { - message.channel.send('**Avaliable Sounds:** Cat'); + message.channel.send('**Available Sounds:** Cat, Pikachu, Vader'); } else if(soundToPlay === sounds.avaliable[soundToPlay]) { voiceChannel.join().then(connnection => { let stream = sounds.paths[soundToPlay]; diff --git a/commands/random/sounds.json b/commands/random/sounds.json index bc6cb9f5..75179c94 100644 --- a/commands/random/sounds.json +++ b/commands/random/sounds.json @@ -1,8 +1,12 @@ { "avaliable": { - "cat": "cat" + "cat": "cat", + "pikachu": "pikachu", + "vader": "vader" }, "paths": { - "cat": "./sounds/cat.mp3" + "cat": "./sounds/cat.mp3", + "pikachu": "./sounds/pikachu.mp3", + "vader": "./sounds/vader.mp3" } } \ No newline at end of file diff --git a/sounds/pikachu.mp3 b/sounds/pikachu.mp3 new file mode 100644 index 00000000..8e817ceb Binary files /dev/null and b/sounds/pikachu.mp3 differ diff --git a/sounds/vader.mp3 b/sounds/vader.mp3 new file mode 100644 index 00000000..12f158d8 Binary files /dev/null and b/sounds/vader.mp3 differ