From 9bd50db3812c6f809a44860542e2819e43a24721 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Wed, 11 May 2022 21:13:43 +0700 Subject: [PATCH] Add second store to jpegs --- Bot/Games/Store.fs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Bot/Games/Store.fs b/Bot/Games/Store.fs index 23a11b7..160cc36 100644 --- a/Bot/Games/Store.fs +++ b/Bot/Games/Store.fs @@ -347,6 +347,7 @@ let handleJpegEvents _ (event : ComponentInteractionCreateEventArgs) = match id with | id when id.StartsWith("Buy") -> handleBuyItem ctx itemId | id when id.StartsWith("ShowJpegStore") -> buy storeId None ctx + | id when id.StartsWith("ShowRaffleStore") -> buy storeId None ctx | id when id.StartsWith("ShowJpegInventory") -> showJpegsEmbed ctx | _ -> task { @@ -386,9 +387,10 @@ let sendBackalleyEmbed (ctx : IDiscordContext) = embed.Color <- DiscordColor.Black embed.Description <- "Hey, what do you want kid?" builder.AddEmbed embed |> ignore - let button1 = DiscordButtonComponent(ButtonStyle.Success, $"ShowJpegStore-0-BACKALLEY", $"NFT Raffles") :> DiscordComponent - let button2 = DiscordButtonComponent(ButtonStyle.Primary, $"ShowJpegInventory-0-BACKALLEY", $"View My Stash") :> DiscordComponent - builder.AddComponents [| button1 ; button2 |] |> ignore + let button1 = DiscordButtonComponent(ButtonStyle.Success, $"ShowJpegStore-0-BACKALLEY1", $"NFT Raffles") :> DiscordComponent + let button2 = DiscordButtonComponent(ButtonStyle.Success, $"ShowRaffleStore-0-BACKALLEY2", $"USDT Raffles") :> DiscordComponent + let button3 = DiscordButtonComponent(ButtonStyle.Primary, $"ShowJpegInventory-0-0", $"View My Stash") :> DiscordComponent + builder.AddComponents [| button1 ; button2 ; button3 |] |> ignore do! GuildEnvironment.botClientJpeg.Value.SendMessageAsync(channel, builder) |> Async.AwaitTask