diff options
| author | 8cy <[email protected]> | 2020-04-13 00:02:08 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-13 00:02:08 -0700 |
| commit | d4e0f546fa1d35a9115df85be1eec3508fe45800 (patch) | |
| tree | b323bf0fc04893be3db6cb42235aedda4cf1d16c | |
| parent | formatting and wording, v1.1.0 (diff) | |
| download | minecraftsoundtrackbot-master.tar.xz minecraftsoundtrackbot-master.zip | |
| -rw-r--r-- | bot.js | 2 | ||||
| -rw-r--r-- | commands/voice/join.js | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -36,7 +36,7 @@ client.registry client.once('ready', () => { console.log(`Started bot: ${client.user.tag} (ID: ${client.user.id})\nCurrently running on ${client.guilds.cache.size} server(s).`); - client.user.setActivity('msb!h | v1.1.0', { + client.user.setActivity('msb!h | v1.1.1', { type: 'LISTENING' }); //client.channels.cache.get('600773421525237781').send('bot started up'); diff --git a/commands/voice/join.js b/commands/voice/join.js index 2dc1fdd..cac5e50 100644 --- a/commands/voice/join.js +++ b/commands/voice/join.js @@ -14,10 +14,10 @@ module.exports = class JoinVoice extends Command { }); } run(msg) { - if (!msg.guild.voice && msg.member.voice.channel) { + if (msg.guild.musicData.isPlaying == false && msg.member.voice.channel) { msg.member.voice.channel.join(); msg.reply('Succesfully joined your voice channel. ' + emoji.random()); - } else if (msg.guild.voice) { + } else if (msg.guild.musicData.isPlaying == false) { msg.reply('I\'m already in voice channel. ' + emoji.random()); } else if (!msg.member.voice.channel) { msg.reply('You\'re not in a voice channel. ' + emoji.random()); |