more patting, better nullchecks, commschannel, greeted stats

osu stuff coming one of these days
This commit is contained in:
Master Kwoth
2016-02-02 15:53:01 +01:00
parent 4938b1b5fe
commit f1cfad1556
7 changed files with 59 additions and 25 deletions

View File

@@ -12,7 +12,7 @@ namespace NadekoBot
{
public class NadekoStats
{
public string BotVersion = "0.8-beta4.2";
public string BotVersion = "0.8-beta5";
private static readonly NadekoStats _instance = new NadekoStats();
public static NadekoStats Instance => _instance;
@@ -57,8 +57,9 @@ namespace NadekoBot
$"\n`Servers: {_client.Servers.Count()}`" +
$"\n`Channels: {_client.Servers.Sum(s => s.AllChannels.Count())}`" +
//$"\nUsers: {_client.Servers.SelectMany(x => x.Users.Select(y => y.Id)).Count()} (non-unique)" +
//$"\nHeap: {Math.Round(GC.GetTotalMemory(true) / (1024.0 * 1024.0), 2).ToString()}MB" +
$"\n`Commands Ran this session: {_commandsRan}`";
$"\n`Heap: {Math.Round((double)GC.GetTotalMemory(true) / 1.MiB(), 2).ToString()} MB`" +
$"\n`Commands Ran this session: {_commandsRan}`" +
$"\n`Greeted/Byed {Commands.ServerGreetCommand.Greeted} times.`";
}
public string GetStats() {

View File

@@ -11,6 +11,7 @@
public string ParseKey;
public string TrelloAppKey;
public bool? ForwardMessages;
public string OsuApiKey;
}
public class AnimeResult
{