FEAT: AUTOPLAY MODE #91

This commit is contained in:
Terry Geng
2020-03-06 16:15:04 +08:00
parent 665edec684
commit e70727cfd1
4 changed files with 50 additions and 7 deletions

View File

@ -752,7 +752,7 @@ def cmd_mode(bot, user, text, command, parameter):
if not parameter:
bot.send_msg(constants.strings("current_mode", mode=var.playlist.mode), text)
return
if not parameter in ["one-shot", "repeat", "random"]:
if not parameter in ["one-shot", "repeat", "random", "autoplay"]:
bot.send_msg(constants.strings('unknown_mode', mode=parameter), text)
else:
var.db.set('playlist', 'playback_mode', parameter)