diff --git a/Bot/Games/HackerBattle.fs b/Bot/Games/HackerBattle.fs index 4b75c96..a0c00b5 100644 --- a/Bot/Games/HackerBattle.fs +++ b/Bot/Games/HackerBattle.fs @@ -284,7 +284,7 @@ let handleButtonEvent _ (event : ComponentInteractionCreateEventArgs) = match event.Id with | id when id.StartsWith("Attack") -> handleAttack eventCtx | id when id.StartsWith("Defend") -> handleDefense eventCtx - | id when id.StartsWith("Trainer") -> Trainer.handleButtonEvent eventCtx |> Async.StartAsTask :> Task + | id when id.StartsWith("Trainer") -> Trainer.handleButtonEvent eventCtx | id when id.StartsWith("Steal") -> Thief.handleSteal eventCtx | id when id.StartsWith("RPS") -> RockPaperScissors.handleRPS eventCtx | _ -> diff --git a/Bot/Games/Trainer.fs b/Bot/Games/Trainer.fs index a261490..e8bb44d 100644 --- a/Bot/Games/Trainer.fs +++ b/Bot/Games/Trainer.fs @@ -249,5 +249,6 @@ let handleButtonEvent (ctx : IDiscordContext) = | 3 -> do! handleTrainerStep3 ctx |> Async.AwaitTask | 4 -> do! handleHack ctx |> Async.AwaitTask | _ -> do! sendFollowUpMessage ctx "No action found" - } + } |> Async.Start + Task.CompletedTask