Skip to content

Commit

Permalink
Update play.js (#185)
Browse files Browse the repository at this point in the history
When the bot is kicked out of the room while the song is playing, the play command did not bring the bot into the room, it only adds the song added with the play command to the queue and the bot did not come to the room.
(When the bot is thrown with the change made, it will be able to come to the room with the play command)
  • Loading branch information
yekaranfil authored May 6, 2021
1 parent 2623e3d commit 89ba03b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ module.exports = {

if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");

if (player.state != "CONNECTED") await player.connect();
await player.connect();
await player.pause(false);

try {
if (SearchString.match(client.Lavasfy.spotifyPattern)) {
Expand Down

0 comments on commit 89ba03b

Please sign in to comment.