From 88df0c093e3741fcbcd0641fd5d124249a599a50 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Sat, 7 Sep 2024 22:20:40 +0800 Subject: [PATCH] Durr I'm an idiot --- KfChatDotNetBot/Commands/MemeCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KfChatDotNetBot/Commands/MemeCommands.cs b/KfChatDotNetBot/Commands/MemeCommands.cs index e2d1946..3adebc1 100644 --- a/KfChatDotNetBot/Commands/MemeCommands.cs +++ b/KfChatDotNetBot/Commands/MemeCommands.cs @@ -68,7 +68,7 @@ public class GmKasinoCommand : ICommand var images = (await Helpers.GetValue(BuiltIn.Keys.BotGmKasinoImageRotation)).JsonDeserialize>(); if (images == null) return; var random = new Random(); - var image = images[random.Next(images.Count + 1)]; + var image = images[random.Next(images.Count)]; botInstance.SendChatMessage($"[img]{image}[/img]", true); } } \ No newline at end of file