mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Implement hardcoding the WebhookURL (#1571)
* Implement hardcoding the WebhookURL * Convert tabs to spaces * Add comment
This commit is contained in:
parent
0400ad89ac
commit
2bf29c06a4
1 changed files with 2 additions and 1 deletions
|
|
@ -78,6 +78,7 @@ class WebhoookSettings
|
||||||
skinModes.Add("fullSkin", "https://crafatar.com/renders/body/{0}");
|
skinModes.Add("fullSkin", "https://crafatar.com/renders/body/{0}");
|
||||||
|
|
||||||
// Define standard values for main class
|
// Define standard values for main class
|
||||||
|
WebhookURL = "Your URL"; // Enter your Webhook URL here to start the bot with it predefined.
|
||||||
SendPrivateMsg = true;
|
SendPrivateMsg = true;
|
||||||
CustomChatDetection = true;
|
CustomChatDetection = true;
|
||||||
SendServerMsg = true;
|
SendServerMsg = true;
|
||||||
|
|
@ -427,7 +428,7 @@ class DiscordWebhook : ChatBot
|
||||||
{
|
{
|
||||||
msg.Content += " " + AddPingsToMessage(msg.SenderName, msg.Content);
|
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.");
|
LogDebugToConsole("Send webhook request to Discord.");
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue