From 289d9e38172fbd4b50e1d5bf1346565f674e47a9 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Sun, 6 Mar 2022 14:14:10 +0700 Subject: [PATCH] Small changes to invite tracker --- Bot/Bot.fs | 2 +- Bot/GuildEnvironment.fs | 5 +++-- Bot/InviteTracker.fs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Bot/Bot.fs b/Bot/Bot.fs index 2936cbf..9cb8bfc 100644 --- a/Bot/Bot.fs +++ b/Bot/Bot.fs @@ -91,7 +91,7 @@ GuildEnvironment.botUserArmory <- Some storeBot.CurrentUser //stealBot.ConnectAsync() |> Async.AwaitTask |> Async.RunSynchronously -//inviterBot.ConnectAsync() |> Async.AwaitTask |> Async.RunSynchronously +inviterBot.ConnectAsync() |> Async.AwaitTask |> Async.RunSynchronously let rec loop areBotsRunning = diff --git a/Bot/GuildEnvironment.fs b/Bot/GuildEnvironment.fs index c6047d5..7efd0fa 100644 --- a/Bot/GuildEnvironment.fs +++ b/Bot/GuildEnvironment.fs @@ -4,8 +4,9 @@ module Degenz.GuildEnvironment open System open DSharpPlus.Entities open dotenv.net -//DotEnv.Load(DotEnvOptions(envFilePaths = [ "../../../../.dev.env" ], overwriteExistingVars = false)) -DotEnv.Load(DotEnvOptions(envFilePaths = [ "../../../../.stag.env" ], overwriteExistingVars = false)) + +DotEnv.Load(DotEnvOptions(envFilePaths = [ "../../../../.dev.env" ], overwriteExistingVars = false)) +//DotEnv.Load(DotEnvOptions(envFilePaths = [ "../../../../.stag.env" ], overwriteExistingVars = false)) //DotEnv.Load(DotEnvOptions(envFilePaths = [ "../../../../.prod.env" ], overwriteExistingVars = false)) let getVar str = Environment.GetEnvironmentVariable(str) diff --git a/Bot/InviteTracker.fs b/Bot/InviteTracker.fs index c2cd05d..c723ade 100644 --- a/Bot/InviteTracker.fs +++ b/Bot/InviteTracker.fs @@ -120,7 +120,7 @@ let createGuildInvite (ctx : IDiscordContext) = DiscordInteractionResponseBuilder() .AddEmbed(embed) .AsEphemeral(true) - .WithContent($"https://discord.gg/{invite.Code}") +// .WithContent($"https://discord.gg/{invite.Code}") do! ctx.Respond(InteractionResponseType.ChannelMessageWithSource, msg) }