Skip to content

Commit

Permalink
music: message about playing error
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdenisov committed Jun 14, 2020
1 parent 5bb69a4 commit 845408c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/music/music.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ exports.run = async (client, message) => {

const play = async (server, client, message) => {
if (!server.queue[0]) {
message.reply("Sorry, can't play this track. <3").then(e => setTimeout(() => e.delete(), 2000))
if (server.queue[1]) {
server.queue.shift()
play(server, client, message)
Expand Down

0 comments on commit 845408c

Please sign in to comment.