From fd02792bfac9d282c964eb4d01df2aff6b58fd21 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 3 Aug 2016 16:59:04 +0200 Subject: [PATCH] fixed stats on shared nadeko --- NadekoBot/Classes/NadekoStats.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NadekoBot/Classes/NadekoStats.cs b/NadekoBot/Classes/NadekoStats.cs index 8161348a..15953d61 100644 --- a/NadekoBot/Classes/NadekoStats.cs +++ b/NadekoBot/Classes/NadekoStats.cs @@ -254,12 +254,12 @@ namespace NadekoBot { commandTracker.TryAdd(e.Message.Id, DateTime.UtcNow); Console.WriteLine($">>COMMAND STARTED\nCmd: {e.Command.Text}\nMsg: {e.Message.Text}\nUsr: {e.User.Name} [{e.User.Id}]\nSrvr: {e.Server?.Name ?? "PRIVATE"} [{e.Server?.Id}]\n-----"); + commandsRan++; #if !NADEKO_RELEASE await Task.Run(() => { try { - commandsRan++; Classes.DbHandler.Instance.Connection.Insert(new DataModels.Command { ServerId = (long)(e.Server?.Id ?? 0),