song queue full real fix
This commit is contained in:
parent
c06047b67c
commit
a8f33e5665
@ -102,7 +102,6 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
|
|
||||||
var file = GetRandomCurrencyImagePath();
|
var file = GetRandomCurrencyImagePath();
|
||||||
Message msg;
|
Message msg;
|
||||||
//todo send message after, not in lock
|
|
||||||
if (file == null)
|
if (file == null)
|
||||||
msg = e.Channel.SendMessage(NadekoBot.Config.CurrencySign).GetAwaiter().GetResult();
|
msg = e.Channel.SendMessage(NadekoBot.Config.CurrencySign).GetAwaiter().GetResult();
|
||||||
else
|
else
|
||||||
|
@ -190,8 +190,6 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
|
|
||||||
await e.Channel.SendMessage("Added new article for typing game.").ConfigureAwait(false);
|
await e.Channel.SendMessage("Added new article for typing game.").ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
//todo add user submissions
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ namespace NadekoBot.Modules.Music
|
|||||||
else if (musicPlayer.RepeatPlaylist)
|
else if (musicPlayer.RepeatPlaylist)
|
||||||
toSend += "🔁";
|
toSend += "🔁";
|
||||||
toSend += $" **{musicPlayer.Playlist.Count}** `tracks currently queued. Showing page {page}` ";
|
toSend += $" **{musicPlayer.Playlist.Count}** `tracks currently queued. Showing page {page}` ";
|
||||||
if (musicPlayer.Playlist.Count >= musicPlayer.MaxQueueSize)
|
if (musicPlayer.MaxQueueSize != 0 && musicPlayer.Playlist.Count >= musicPlayer.MaxQueueSize)
|
||||||
toSend += "**Song queue is full!**\n";
|
toSend += "**Song queue is full!**\n";
|
||||||
else
|
else
|
||||||
toSend += "\n";
|
toSend += "\n";
|
||||||
@ -300,7 +300,6 @@ namespace NadekoBot.Modules.Music
|
|||||||
await e.Channel.SendMessage($"🎵 `Failed to find any songs.`").ConfigureAwait(false);
|
await e.Channel.SendMessage($"🎵 `Failed to find any songs.`").ConfigureAwait(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//todo TEMPORARY SOLUTION, USE RESOLVE QUEUE IN THE FUTURE
|
|
||||||
var idArray = ids as string[] ?? ids.ToArray();
|
var idArray = ids as string[] ?? ids.ToArray();
|
||||||
var count = idArray.Length;
|
var count = idArray.Length;
|
||||||
var msg =
|
var msg =
|
||||||
|
Loading…
Reference in New Issue
Block a user