Updated packages

This commit is contained in:
Kwoth
2022-05-12 23:56:12 +02:00
parent 1db97decd1
commit cb865d5012
8 changed files with 32 additions and 24 deletions

View File

@@ -502,7 +502,10 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
var value = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
_cache.Redis.GetDatabase()
.StringSet(key, value, TimeSpan.FromMinutes(_xpConfig.Data.VoiceMaxMinutes), When.NotExists);
.StringSet(key,
value,
TimeSpan.FromMinutes(_xpConfig.Data.VoiceMaxMinutes),
when: When.NotExists);
}
private void UserLeftVoiceChannel(SocketGuildUser user, SocketVoiceChannel channel)
@@ -632,7 +635,10 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
var r = _cache.Redis.GetDatabase();
var key = $"{_creds.RedisKey()}_user_xp_gain_{userId}";
return r.StringSet(key, true, TimeSpan.FromMinutes(_xpConfig.Data.MessageXpCooldown), When.NotExists);
return r.StringSet(key,
true,
TimeSpan.FromMinutes(_xpConfig.Data.MessageXpCooldown),
when: When.NotExists);
}
public async Task<FullUserStats> GetUserStatsAsync(IGuildUser user)