Stats initialize

This commit is contained in:
Kwoth 2017-01-15 03:35:13 +01:00
parent c04ff7ff94
commit 9051e44125
2 changed files with 3 additions and 1 deletions

View File

@ -95,6 +95,7 @@ namespace NadekoBot
//connect
await Client.LoginAsync(TokenType.Bot, Credentials.Token).ConfigureAwait(false);
await Client.ConnectAsync().ConfigureAwait(false);
Stats.Initialize();
#if !GLOBAL_NADEKO
await Client.DownloadAllUsersAsync().ConfigureAwait(false);
#endif

View File

@ -60,7 +60,8 @@ namespace NadekoBot
client.MessageReceived += arg1 =>
{
if (arg1.Author == null || arg1.Author.IsBot)
return Task.CompletedTask; MessageReceived(arg1);
return Task.CompletedTask;
MessageReceived(arg1);
return Task.CompletedTask;
};
client.UserLeft += arg1 => { UserLeft(arg1); return Task.CompletedTask; };