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); 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-----"); 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 #if !NADEKO_RELEASE
await Task.Run(() => await Task.Run(() =>
{ {
try try
{ {
commandsRan++;
Classes.DbHandler.Instance.Connection.Insert(new DataModels.Command Classes.DbHandler.Instance.Connection.Insert(new DataModels.Command
{ {
ServerId = (long)(e.Server?.Id ?? 0), ServerId = (long)(e.Server?.Id ?? 0),