diff --git a/PlayerInteractions/Bot.fs b/PlayerInteractions/Bot.fs index 88e4326..cc9d522 100644 --- a/PlayerInteractions/Bot.fs +++ b/PlayerInteractions/Bot.fs @@ -9,6 +9,7 @@ open Degenz.SlotMachine open Degenz.Trainer open Degenz.HackerBattle open Degenz.Store +open Emzi0767.Utilities open dotenv.net @@ -45,6 +46,9 @@ let hackerBattleBot = new DiscordClient(hackerBattleConfig) let storeBot = new DiscordClient(storeConfig) let slotMachineBot = new DiscordClient(slotMachineConfig) +hackerBattleBot.add_ComponentInteractionCreated(AsyncEventHandler(HackerBattle.handleButtonEvent)) +trainerBot.add_ComponentInteractionCreated(AsyncEventHandler(Trainer.handleButtonEvent)) + let clients = [| playerInteractionsBot ; trainerBot ; hackerBattleBot ; storeBot ; slotMachineBot |] let sc1 = playerInteractionsBot.UseSlashCommands()