Stats initialize
This commit is contained in:
parent
c04ff7ff94
commit
9051e44125
@ -95,6 +95,7 @@ namespace NadekoBot
|
|||||||
//connect
|
//connect
|
||||||
await Client.LoginAsync(TokenType.Bot, Credentials.Token).ConfigureAwait(false);
|
await Client.LoginAsync(TokenType.Bot, Credentials.Token).ConfigureAwait(false);
|
||||||
await Client.ConnectAsync().ConfigureAwait(false);
|
await Client.ConnectAsync().ConfigureAwait(false);
|
||||||
|
Stats.Initialize();
|
||||||
#if !GLOBAL_NADEKO
|
#if !GLOBAL_NADEKO
|
||||||
await Client.DownloadAllUsersAsync().ConfigureAwait(false);
|
await Client.DownloadAllUsersAsync().ConfigureAwait(false);
|
||||||
#endif
|
#endif
|
||||||
|
@ -60,7 +60,8 @@ namespace NadekoBot
|
|||||||
client.MessageReceived += arg1 =>
|
client.MessageReceived += arg1 =>
|
||||||
{
|
{
|
||||||
if (arg1.Author == null || arg1.Author.IsBot)
|
if (arg1.Author == null || arg1.Author.IsBot)
|
||||||
return Task.CompletedTask; MessageReceived(arg1);
|
return Task.CompletedTask;
|
||||||
|
MessageReceived(arg1);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
};
|
};
|
||||||
client.UserLeft += arg1 => { UserLeft(arg1); return Task.CompletedTask; };
|
client.UserLeft += arg1 => { UserLeft(arg1); return Task.CompletedTask; };
|
||||||
|
Loading…
Reference in New Issue
Block a user