feat: oust will clear the playlist in one-shot mode

This commit is contained in:
Terry Geng 2020-03-12 09:06:16 +08:00
parent dc5a112fa9
commit a750eeeab6

View File

@ -595,6 +595,9 @@ def cmd_stop_and_getout(bot, user, text, command, parameter):
global log
bot.stop()
if var.playlist.mode == "one-shot":
var.playlist.clear()
if bot.channel:
bot.mumble.channels.find_by_name(bot.channel).move_in()