aboutsummaryrefslogtreecommitdiff
path: root/Plugins
diff options
context:
space:
mode:
authorTheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com>2018-03-11 22:17:35 -0400
committerTheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com>2018-03-11 22:17:35 -0400
commit04abe1ecfac0d42d54315e41c9c8f42173205725 (patch)
tree3b12ad842e8d9991ee380fdefa25ee0f73217ddc /Plugins
parentaa8526d35c25d65c300b535a0bc4ef572335ee4f (diff)
parent295b090c3f0254012005a09346873bf40fb34846 (diff)
downloadPokeBot-04abe1ecfac0d42d54315e41c9c8f42173205725.tar.gz
PokeBot-04abe1ecfac0d42d54315e41c9c8f42173205725.tar.bz2
PokeBot-04abe1ecfac0d42d54315e41c9c8f42173205725.zip
Merge branch 'master' of https://github.com/PokeWorld/PokeBot
Diffstat (limited to 'Plugins')
-rw-r--r--Plugins/Music.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/Plugins/Music.js b/Plugins/Music.js
index b72d40a..6d18146 100644
--- a/Plugins/Music.js
+++ b/Plugins/Music.js
@@ -42,6 +42,9 @@ exports.play = async (bot, msg, track) => {
if (bot.queue.get(msg.guild.id)[0]) {
player.play(bot.queue.get(msg.guild.id).shift());
}
+ else {
+ bot.player.leave(msg.guild.id);
+ }
});
}
else {