mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-12 17:19:35 -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");
|
throw new InvalidOperationException("board.ExportAndCleanup returned null");
|
||||||
}
|
}
|
||||||
var imageUrl = await Zipline.Upload(finalImageStream, new MediaTypeHeaderValue("image/webp"), "1h", ctx);
|
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.
|
autoDeleteAfter: TimeSpan.FromSeconds(60)); // delay till slots graphic deletion.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user