Spoiler slots images

This commit is contained in:
barelyprofessional
2026-05-10 11:01:09 -05:00
parent 45cecb5e10
commit 5e2dc25c77

View File

@@ -134,7 +134,7 @@ public class SlotsCommand : ICommand
throw new InvalidOperationException("board.ExportAndCleanup returned null");
}
var imageUrl = await Zipline.Upload(finalImageStream, new MediaTypeHeaderValue("image/webp"), "1h", ctx);
await botInstance.SendChatMessageAsync($"[img]{imageUrl}[/img]", true,
await botInstance.SendChatMessageAsync($"[spoiler=\"Slots game for {user.FormatUsername().Replace("\"", string.Empty)}\"][img]{imageUrl}[/img][/spoiler]", true,
autoDeleteAfter: TimeSpan.FromSeconds(60)); // delay till slots graphic deletion.
}