Showing current time on !m np

This commit is contained in:
Master Kwoth
2016-03-15 17:33:53 +01:00
parent 19deee6597
commit d25690c83b
3 changed files with 17 additions and 10 deletions

View File

@ -121,7 +121,10 @@ namespace NadekoBot.Modules {
MusicPlayer musicPlayer;
if (!MusicPlayers.TryGetValue(e.Server, out musicPlayer))
return;
await e.Channel.SendMessage($"🎵`Now Playing` {musicPlayer.CurrentSong.PrettyName}");
var currentSong = musicPlayer.CurrentSong;
if (currentSong != null)
await e.Channel.SendMessage($"🎵`Now Playing` {currentSong.PrettyName} " +
$"{currentSong.PrettyCurrentTime()}");
});
cgb.CreateCommand("vol")