TS and Skype suck, correct roll guesses are now being counted

This commit is contained in:
Runebaas 2017-04-22 23:41:15 +02:00
parent 468802d192
commit f363f7b4fe
5 changed files with 31 additions and 11 deletions

View file

@ -21,16 +21,14 @@ namespace Geekbot.net.Lib
{
var guildId = ((SocketGuildChannel) message.Channel).Guild.Id;
var key = guildId + "-" + message.Author.Id + "-messages";
var messages = (int)redis.StringGet(key);
redis.StringSet(key, (messages + 1).ToString());
await redis.StringIncrementAsync(key);
}
public async Task UpdateGuildRecordAsync()
{
var guildId = ((SocketGuildChannel) message.Channel).Guild.Id;
var key = guildId + "-messages";
var messages = (int)redis.StringGet(key);
redis.StringSet(key, (messages + 1).ToString());
await redis.StringIncrementAsync(key);
}
}
}