more async and bug fix in stats
This commit is contained in:
parent
916181a878
commit
5dd7d343ee
2 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ namespace Geekbot.net.Modules
|
|||
eb.AddField("Karma", karma);
|
||||
}
|
||||
|
||||
var correctRolls = redis.Client.StringGet($"{Context.Guild.Id}-{Context.User.Id}-correctRolls");
|
||||
var correctRolls = redis.Client.StringGet($"{Context.Guild.Id}-{userInfo.Id}-correctRolls");
|
||||
if (!correctRolls.IsNullOrEmpty)
|
||||
{
|
||||
eb.AddField("Guessed Rolls", correctRolls);
|
||||
|
|
|
@ -115,8 +115,8 @@ namespace Geekbot.net
|
|||
Console.WriteLine(channel.Guild.Name + " - " + message.Channel + " - " + message.Author.Username + " - " + message.Content);
|
||||
|
||||
var statsRecorder = new StatsRecorder(message, redis);
|
||||
await statsRecorder.UpdateUserRecordAsync();
|
||||
await statsRecorder.UpdateGuildRecordAsync();
|
||||
Task.Run(() => statsRecorder.UpdateUserRecordAsync());
|
||||
Task.Run(() => statsRecorder.UpdateGuildRecordAsync());
|
||||
}
|
||||
|
||||
public async Task HandleUserJoined(SocketGuildUser user)
|
||||
|
|
Loading…
Reference in a new issue