From 2bf29c06a451d9ac7facdc3794ddd401d88eaaa9 Mon Sep 17 00:00:00 2001 From: Daenges <57369924+Daenges@users.noreply.github.com> Date: Thu, 6 May 2021 13:53:20 +0200 Subject: [PATCH] Implement hardcoding the WebhookURL (#1571) * Implement hardcoding the WebhookURL * Convert tabs to spaces * Add comment --- MinecraftClient/config/ChatBots/DiscordWebhook.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MinecraftClient/config/ChatBots/DiscordWebhook.cs b/MinecraftClient/config/ChatBots/DiscordWebhook.cs index 60a030b7..154272ba 100644 --- a/MinecraftClient/config/ChatBots/DiscordWebhook.cs +++ b/MinecraftClient/config/ChatBots/DiscordWebhook.cs @@ -78,6 +78,7 @@ class WebhoookSettings skinModes.Add("fullSkin", "https://crafatar.com/renders/body/{0}"); // Define standard values for main class + WebhookURL = "Your URL"; // Enter your Webhook URL here to start the bot with it predefined. SendPrivateMsg = true; CustomChatDetection = true; SendServerMsg = true; @@ -427,7 +428,7 @@ class DiscordWebhook : ChatBot { msg.Content += " " + AddPingsToMessage(msg.SenderName, msg.Content); - if (settings.WebhookURL != "" && settings.WebhookURL != null) + if (settings.WebhookURL != "" && settings.WebhookURL != "Your URL") { LogDebugToConsole("Send webhook request to Discord."); try