minor change before submoduling discord.net

This commit is contained in:
Master Kwoth 2016-03-04 12:27:49 +01:00
parent 80e69addaa
commit 1626ae9a07
2 changed files with 7 additions and 17 deletions

View File

@ -167,20 +167,10 @@ namespace NadekoBot.Classes.Music {
Console.WriteLine($"Buffering done." + $" [{songBuffer.ContentLength}]");
if (p != null) {
try {
p.CancelOutputRead();
} catch { }
try {
p.StandardOutput.Dispose();
} catch { }
try {
p.CloseMainWindow();
} catch { }
try {
p.Close();
} catch { }
try {
p.Kill();
}
catch {}
p.Dispose();
} catch { }
}
}
});

View File

@ -102,12 +102,12 @@ namespace NadekoBot.Modules {
await e.Channel.SendMessage("🎵 No active music musicPlayer.");
return;
}
string toSend = "🎵 **" + musicPlayer.Playlist.Count + "** `tracks currently queued.` ";
var toSend = "🎵 **" + musicPlayer.Playlist.Count + "** `tracks currently queued.` ";
if (musicPlayer.Playlist.Count >= MusicPlayer.MaximumPlaylistSize)
toSend += "**Song queue is full!**\n";
else
toSend += "\n";
int number = 1;
var number = 1;
await e.Channel.SendMessage(toSend + string.Join("\n", musicPlayer.Playlist.Take(15).Select(v => $"`{number++}.` {v.PrettyName}")));
});