mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 15:27:21 +01:00
22 lines
No EOL
879 B
C#
22 lines
No EOL
879 B
C#
using System.Text;
|
|
|
|
namespace MareSynchronosShared.Utils;
|
|
|
|
public class ServicesConfiguration : MareConfigurationBase
|
|
{
|
|
public string DiscordBotToken { get; set; } = string.Empty;
|
|
public ulong? DiscordChannelForMessages { get; set; } = null;
|
|
public ulong? DiscordChannelForReports { get; set; } = null;
|
|
public Uri MainServerGrpcAddress { get; set; } = null;
|
|
|
|
public override string ToString()
|
|
{
|
|
StringBuilder sb = new();
|
|
sb.AppendLine(base.ToString());
|
|
sb.AppendLine($"{nameof(DiscordBotToken)} => {DiscordBotToken}");
|
|
sb.AppendLine($"{nameof(MainServerGrpcAddress)} => {MainServerGrpcAddress}");
|
|
sb.AppendLine($"{nameof(DiscordChannelForMessages)} => {DiscordChannelForMessages}");
|
|
sb.AppendLine($"{nameof(DiscordChannelForReports)} => {DiscordChannelForReports}");
|
|
return sb.ToString();
|
|
}
|
|
} |