Missed one

This commit is contained in:
Joseph Ferano 2022-06-22 00:25:10 +07:00
parent 793b61267d
commit 2b397f960d
2 changed files with 3 additions and 2 deletions

View File

@ -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
| _ ->

View File

@ -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