Exception logging for VIP levels as they're not working

This commit is contained in:
barelyprofessional
2026-01-05 19:21:22 -06:00
parent 78d5ba9f40
commit 78207b291b

View File

@@ -156,6 +156,8 @@ internal class BotCommands
return;
}
try
{
if (!(await SettingsProvider.GetValueAsync(BuiltIn.Keys.MoneyEnabled)).ToBoolean()) return;
var wagerCommand = HasAttribute<WagerCommand>(command);
if (!wagerCommand) return;
@@ -171,6 +173,11 @@ internal class BotCommands
$"🤑🤑 {user.FormatUsername()} has leveled up to to {newLevel.VipLevel.Icon} {newLevel.VipLevel.Name} Tier {newLevel.Tier} " +
$"and received a bonus of {await payout.FormatKasinoCurrencyAsync()}", true);
}
catch (Exception e)
{
_logger.Error(e);
}
}
private async Task SendCooldownResponse(UserDbModel user, RateLimitOptionsModel options, DateTimeOffset oldestEntryExpires, string commandName)
{