Stop works as it used to before. Auto rpl disabled.

Bot no longer repeats playlist on default.

Bot now clears the queued songs list (playlist)
- if `.stop` command is used.
- if the last song of the queue is playing and `.next` command is used.
- if the the last song of the queue finished playing.
This commit is contained in:
samvaio 2017-07-13 17:36:49 +05:30
parent c328ec68d3
commit fd410bc856

View File

@ -62,7 +62,7 @@ namespace NadekoBot.Services.Music
public bool RepeatCurrentSong { get; private set; } public bool RepeatCurrentSong { get; private set; }
public bool Shuffle { get; private set; } public bool Shuffle { get; private set; }
public bool Autoplay { get; private set; } public bool Autoplay { get; private set; }
public bool RepeatPlaylist { get; private set; } = true; public bool RepeatPlaylist { get; private set; } = false;
public uint MaxQueueSize public uint MaxQueueSize
{ {
get => Queue.MaxQueueSize; get => Queue.MaxQueueSize;
@ -442,12 +442,12 @@ namespace NadekoBot.Services.Music
} }
} }
public void Stop(bool clearQueue = false) public void Stop(bool clearQueue = true)
{ {
lock (locker) lock (locker)
{ {
Stopped = true; //Stopped = true;
Queue.ResetCurrent(); //Queue.ResetCurrent();
if (clearQueue) if (clearQueue)
Queue.Clear(); Queue.Clear();
Unpause(); Unpause();