rebuild discord bot to better user interactions

This commit is contained in:
rootdarkarchon
2023-09-17 00:05:57 +02:00
parent 56b27e5ee8
commit 7e90187822
13 changed files with 1409 additions and 7 deletions

View File

@@ -7,7 +7,9 @@ public class ServicesConfiguration : MareConfigurationBase
public string DiscordBotToken { get; set; } = string.Empty;
public ulong? DiscordChannelForMessages { get; set; } = null;
public ulong? DiscordChannelForReports { get; set; } = null;
public ulong? DiscordChannelForCommands { get; set; } = null;
public Uri MainServerGrpcAddress { get; set; } = null;
public ulong[]? VanityRoles { get; set; } = null;
public override string ToString()
{
@@ -17,6 +19,11 @@ public class ServicesConfiguration : MareConfigurationBase
sb.AppendLine($"{nameof(MainServerGrpcAddress)} => {MainServerGrpcAddress}");
sb.AppendLine($"{nameof(DiscordChannelForMessages)} => {DiscordChannelForMessages}");
sb.AppendLine($"{nameof(DiscordChannelForReports)} => {DiscordChannelForReports}");
sb.AppendLine($"{nameof(DiscordChannelForCommands)} => {DiscordChannelForCommands}");
foreach (var role in VanityRoles)
{
sb.AppendLine($"{nameof(VanityRoles)} => {role}");
}
return sb.ToString();
}
}