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:
parent
c328ec68d3
commit
fd410bc856
@ -62,7 +62,7 @@ namespace NadekoBot.Services.Music
|
||||
public bool RepeatCurrentSong { get; private set; }
|
||||
public bool Shuffle { 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
|
||||
{
|
||||
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)
|
||||
{
|
||||
Stopped = true;
|
||||
Queue.ResetCurrent();
|
||||
//Stopped = true;
|
||||
//Queue.ResetCurrent();
|
||||
if (clearQueue)
|
||||
Queue.Clear();
|
||||
Unpause();
|
||||
|
Loading…
Reference in New Issue
Block a user