TS and Skype suck, correct roll guesses are now being counted
This commit is contained in:
parent
468802d192
commit
f363f7b4fe
5 changed files with 31 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue