cleanup
This commit is contained in:
parent
0ed063d81f
commit
b750a0c66f
1 changed files with 2 additions and 2 deletions
|
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue