volume added to playing

This commit is contained in:
samvaio 2016-12-23 09:20:49 +05:30
parent 7638c65d7b
commit ca658ae55c

View File

@ -867,6 +867,9 @@ namespace NadekoBot.Modules.Music
mp.OnStarted += async (player, song) =>
{
try { await mp.UpdateSongDurationsAsync().ConfigureAwait(false); } catch { }
var sender = player as MusicPlayer;
if (sender == null)
return;
try
{
if (playingMessage != null)
@ -874,8 +877,8 @@ namespace NadekoBot.Modules.Music
playingMessage = await textCh.EmbedAsync(new EmbedBuilder().WithOkColor()
.WithAuthor(eab => eab.WithName("Playing Song").WithMusicIcon())
.WithDescription(song.PrettyName)
.WithFooter(ef => ef.WithText(song.PrettyInfo))
.WithDescription($"{song.PrettyName}")
.WithFooter(ef => ef.WithText($"🔉 {(int)(sender.Volume * 100)}% | {song.PrettyInfo}"))
.Build())
.ConfigureAwait(false);
}
@ -937,4 +940,4 @@ namespace NadekoBot.Modules.Music
}
}
}
}
}