This commit is contained in:
Bohicatv 2026-03-05 02:22:54 -08:00
parent 0ed063d81f
commit b750a0c66f

View file

@ -13,7 +13,7 @@ namespace Server.Engines.Chat
public static void Configure()
{
_webhookUrl = ServerConfiguration.GetOrUpdateSetting("chatdiscord.webhookUrl", "DISCORD_CHANNEL_WEBHOOK_HERE");
_webhookUrl = ServerConfiguration.GetOrUpdateSetting("chatdiscord.webhookUrl", "DISCORD_CHANNEL_WEBHOOK");
}
public static bool IsEnabled => !string.IsNullOrEmpty(_webhookUrl);
@ -40,7 +40,7 @@ namespace Server.Engines.Chat
}
catch (Exception ex)
{
Console.WriteLine($"Discord webhook error: {ex.Message}");
Console.WriteLine($"Discord webhook error for channel [{channelName}] {username}: {ex.Message}");
}
}
}