fixed stats on shared nadeko
This commit is contained in:
parent
56ac08ca49
commit
fd02792bfa
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user