diff --git a/.gitignore b/.gitignore index 2a74373..9fa882c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ *.userosscache *.sln.docstates -.env +*.env # User-specific files (MonoDevelop/Xamarin Studio) *.userprefs diff --git a/Bot/Bot.fs b/Bot/Bot.fs index 29318ff..ff20b88 100644 --- a/Bot/Bot.fs +++ b/Bot/Bot.fs @@ -28,25 +28,26 @@ for conf in configs do let guild = GuildEnvironment.guildId -playerInteractionsConfig.Token <- GuildEnvironment.tokenPlayerInteractions +//playerInteractionsConfig.Token <- GuildEnvironment.tokenPlayerInteractions hackerBattleConfig.Token <- GuildEnvironment.tokenHackerBattle storeConfig.Token <- GuildEnvironment.tokenStore //slotMachineConfig.Token <- Environment.GetEnvironmentVariable("BOT_SLOT_MACHINE") -let playerInteractionsBot = new DiscordClient(playerInteractionsConfig) +//let playerInteractionsBot = new DiscordClient(playerInteractionsConfig) let hackerBattleBot = new DiscordClient(hackerBattleConfig) let storeBot = new DiscordClient(storeConfig) //let slotMachineBot = new DiscordClient(slotMachineConfig) //let clients = [| storeBot ; trainerBot ; hackerBattleBot ; playerInteractionsBot ; slotMachineBot |] -let clients = [| hackerBattleBot ; storeBot ; playerInteractionsBot |] +//let clients = [| hackerBattleBot ; storeBot ; playerInteractionsBot |] +let clients = [| hackerBattleBot ; storeBot |] -let sc1 = playerInteractionsBot.UseSlashCommands() +//let sc1 = playerInteractionsBot.UseSlashCommands() let sc3 = hackerBattleBot.UseSlashCommands() let sc4 = storeBot.UseSlashCommands() //let sc5 = slotMachineBot.UseSlashCommands() -sc1.RegisterCommands(guild); +//sc1.RegisterCommands(guild); sc3.RegisterCommands(guild); sc4.RegisterCommands(guild); //sc5.RegisterCommands(guild); diff --git a/Bot/GuildEnvironment.fs b/Bot/GuildEnvironment.fs index 32b8de1..1b3d4b4 100644 --- a/Bot/GuildEnvironment.fs +++ b/Bot/GuildEnvironment.fs @@ -4,7 +4,8 @@ module Degenz.GuildEnvironment open System open dotenv.net -DotEnv.Load(DotEnvOptions(probeForEnv = true, probeLevelsToSearch = 5, overwriteExistingVars = false)) +//DotEnv.Load(DotEnvOptions(envFilePaths = [ "../../../../stag.env" ], overwriteExistingVars = false)) +DotEnv.Load(DotEnvOptions(envFilePaths = [ "../../../../prod.env" ], overwriteExistingVars = false)) let getVar str = Environment.GetEnvironmentVariable(str) let getId str = getVar str |> uint64