Implement hardcoding the WebhookURL (#1571)

* Implement hardcoding the WebhookURL

* Convert tabs to spaces

* Add comment
This commit is contained in:
Daenges 2021-05-06 13:53:20 +02:00 committed by GitHub
parent 0400ad89ac
commit 2bf29c06a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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