Disable player interactions bot
This commit is contained in:
parent
be6a7d4bd8
commit
0c91db2b12
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,7 +10,7 @@
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
.env
|
||||
*.env
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
11
Bot/Bot.fs
11
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<PlayerInteractions>(guild);
|
||||
//sc1.RegisterCommands<PlayerInteractions>(guild);
|
||||
sc3.RegisterCommands<HackerGame>(guild);
|
||||
sc4.RegisterCommands<Store>(guild);
|
||||
//sc5.RegisterCommands<SlotMachine>(guild);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user