mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-11 00:29:34 -04:00
Spoiler slots images
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user