From 6b86b3ae6c8b4aeef0540c5f39d9985e00781e8b Mon Sep 17 00:00:00 2001 From: CrackmaticSoftware <248342529+CrackmaticSoftware@users.noreply.github.com> Date: Mon, 22 Dec 2025 18:02:01 +0100 Subject: [PATCH] snitch on people adding/removing images to the bot (#13) * image preview when adding to carrousel * spelling is hard * snitch more * fuck yoursel --- KfChatDotNetBot/Commands/ImageCommands.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/KfChatDotNetBot/Commands/ImageCommands.cs b/KfChatDotNetBot/Commands/ImageCommands.cs index fd44164..f5e7ed3 100644 --- a/KfChatDotNetBot/Commands/ImageCommands.cs +++ b/KfChatDotNetBot/Commands/ImageCommands.cs @@ -46,7 +46,9 @@ public class AddImageCommand : ICommand await db.Images.AddAsync(new ImageDbModel { Key = key, Url = url, LastSeen = DateTimeOffset.MinValue }, ctx); await db.SaveChangesAsync(ctx); - await botInstance.SendChatMessageAsync("Added image to database", true); + //await botInstance.SendChatMessageAsync("Added image to database", true); + await botInstance.SendChatMessageAsync( + $"{user.FormatUsername()}, you added the following media to the {key} carousel\n[img]{url}[/img]", true); } } @@ -86,7 +88,9 @@ public class RemoveImageCommand : ICommand db.Images.Remove(image); await db.SaveChangesAsync(ctx); - await botInstance.SendChatMessageAsync("Removed image from database", true); + // await botInstance.SendChatMessageAsync("Removed image from database", true); + await botInstance.SendChatMessageAsync( + $"{user.FormatUsername()}, you removed the following media from the {key} carousel\n[img]{url}[/img]", true); } }