mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 17:07:22 +01:00
rebuild discord bot to better user interactions
This commit is contained in:
parent
56b27e5ee8
commit
7e90187822
13 changed files with 1409 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue