add colours to stats

This commit is contained in:
samvaio 2016-11-19 17:52:49 +05:30 committed by GitHub
parent 3e6993b3e5
commit 2d617ec0a8

View File

@ -61,14 +61,15 @@ namespace NadekoBot.Services.Impl
public async Task<string> Print() public async Task<string> Print()
{ {
var curUser = await client.GetCurrentUserAsync(); var curUser = await client.GetCurrentUserAsync();
return $@"`Author: Kwoth` `Library: Discord.Net` return $@"```css
`Bot Version: {BotVersion}` Author: [Kwoth] | Library: [Discord.Net]
`Bot id: {curUser.Id}` Bot Version: [{BotVersion}]
`Owners' Ids: {string.Join(", ", NadekoBot.Credentials.OwnerIds)}` Bot id: {curUser.Id}
`Uptime: {GetUptimeString()}` Owners Ids: {string.Join(", ", NadekoBot.Credentials.OwnerIds)}
`Servers: {client.GetGuilds().Count} | TextChannels: {client.GetGuilds().SelectMany(g => g.GetChannels().Where(c => c is ITextChannel)).Count()} | VoiceChannels: {client.GetGuilds().SelectMany(g => g.GetChannels().Where(c => c is IVoiceChannel)).Count()}` Uptime: {GetUptimeString()}
`Commands Ran this session: {commandsRan}` Servers: {client.GetGuilds().Count} | TextChannels: {client.GetGuilds().SelectMany(g => g.GetChannels().Where(c => c is ITextChannel)).Count()} | VoiceChannels: {client.GetGuilds().SelectMany(g => g.GetChannels().Where(c => c is IVoiceChannel)).Count()}
`Messages: {messageCounter} ({messageCounter / (double)GetUptime().TotalSeconds:F2}/sec)` `Heap: {Heap} MB`"; Commands Ran this session: {commandsRan}`
Messages: {messageCounter} [{messageCounter / (double)GetUptime().TotalSeconds:F2}/sec] Heap: [{Heap} MB]```";
} }
public Task Reset() public Task Reset()