From 3ef02e43e3de87f3bbbbe60b1a705e14e9f414bf Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Fri, 4 Mar 2022 13:11:12 +0700 Subject: [PATCH] Disable buy items command --- Bot/Games/Store.fs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Bot/Games/Store.fs b/Bot/Games/Store.fs index 77b0f13..0790822 100644 --- a/Bot/Games/Store.fs +++ b/Bot/Games/Store.fs @@ -212,15 +212,18 @@ type Store() = do! Messaging.sendSimpleResponse ctx msg } +// [] +// member _.BuyItem (ctx : InteractionContext) = checkChannel (DiscordInteractionContext(ctx)) +// [] - member _.BuyItem (ctx : InteractionContext) = checkChannel (DiscordInteractionContext(ctx)) + member _.BuyHack (ctx : InteractionContext) = enforceChannel (DiscordInteractionContext(ctx)) (buy (Inventory.getItemsByType ItemType.Hack)) [] member this.BuyShield (ctx : InteractionContext) = enforceChannel (DiscordInteractionContext(ctx)) (buy (Inventory.getItemsByType ItemType.Shield)) - [] - member this.BuyFood (ctx : InteractionContext) = enforceChannel (DiscordInteractionContext(ctx)) (buy (Inventory.getItemsByType ItemType.Food)) - +// [] +// member this.BuyFood (ctx : InteractionContext) = enforceChannel (DiscordInteractionContext(ctx)) (buy (Inventory.getItemsByType ItemType.Food)) +// [] member this.SellHack (ctx : InteractionContext) = enforceChannel (DiscordInteractionContext(ctx)) (sell "Hacks" (Inventory.getItemsByType ItemType.Hack))