From dd0085403e330417f9615ee9e2404436385dbcd5 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Fri, 2 May 2025 12:42:54 -0500 Subject: [PATCH] Forgot about the type conversion feature --- KfChatDotNetBot/Commands/JuiceCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KfChatDotNetBot/Commands/JuiceCommand.cs b/KfChatDotNetBot/Commands/JuiceCommand.cs index 9180e23..b129a40 100644 --- a/KfChatDotNetBot/Commands/JuiceCommand.cs +++ b/KfChatDotNetBot/Commands/JuiceCommand.cs @@ -51,7 +51,7 @@ public class JuiceCommand : ICommand { Amount = amount, User = user, JuicedAt = DateTimeOffset.UtcNow }, ctx); await db.SaveChangesAsync(ctx); if (juicerSettings[BuiltIn.Keys.JuiceAutoDeleteMsgDelay].Value == null) return; - var delay = int.Parse(juicerSettings[BuiltIn.Keys.JuiceAutoDeleteMsgDelay].Value!); + var delay = juicerSettings[BuiltIn.Keys.JuiceAutoDeleteMsgDelay].ToType(); if (delay <= 0) return; while (sentMsg.ChatMessageId == null) {