fixed stats on shared nadeko

This commit is contained in:
Kwoth 2016-08-03 16:59:04 +02:00
parent 56ac08ca49
commit fd02792bfa

View File

@ -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),