diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-11 20:54:04 -0400 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-11 20:54:04 -0400 |
| commit | 295b090c3f0254012005a09346873bf40fb34846 (patch) | |
| tree | c1f149cd52a22b7459ad0c4b6c439fb33e7c7f9b | |
| parent | a687cb0faa5e55986b7e92fa07146dcf3e5c043e (diff) | |
| download | PokeBot-1.1.tar.gz PokeBot-1.1.tar.bz2 PokeBot-1.1.zip | |
fixv1.1
| -rw-r--r-- | Plugins/Music.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugins/Music.js b/Plugins/Music.js index 069957e..6d18146 100644 --- a/Plugins/Music.js +++ b/Plugins/Music.js @@ -40,10 +40,10 @@ exports.play = async (bot, msg, track) => { player.play(bot.queue.get(msg.guild.id).shift()); player.on('end', () => { if (bot.queue.get(msg.guild.id)[0]) { - player.play(bot, msg, bot.queue.get(msg.guild.id).shift()); + player.play(bot.queue.get(msg.guild.id).shift()); } else { - player.leave(msg.guild.id); + bot.player.leave(msg.guild.id); } }); } |
