Add Discord Rich Presence ChatBot integration

- Add DiscordRichPresence NuGet package (v1.143.0)
- Create DiscordRpc.cs ChatBot with configurable presence display
- Wire config in Settings.cs ChatBotConfig class
- Register bot in McClient.cs RegisterBots()
- Add translation strings to Translations.resx and Designer
- Add config comments to ConfigComments.resx and Designer
- Support placeholders: {server_host}, {server_port}, {username},
  {health}, {max_health}, {food}, {dimension}, {gamemode},
  {x}, {y}, {z}, {player_count}, {protocol}

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/43388021-4264-47e6-8403-7a1bca66d86f
This commit is contained in:
copilot-swe-agent[bot] 2026-03-23 00:03:55 +00:00
parent 0a463f2380
commit a2d032b549
8 changed files with 546 additions and 0 deletions

View file

@ -898,6 +898,105 @@ namespace MinecraftClient {
}
}
/// <summary>
/// Looks up a localized string similar to Show a Discord Rich Presence status with your current Minecraft session info..
/// </summary>
internal static string ChatBot_DiscordRpc {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Your Discord Application ID..
/// </summary>
internal static string ChatBot_DiscordRpc_ApplicationId {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc.ApplicationId", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The top line of the Rich Presence display. Supports placeholders..
/// </summary>
internal static string ChatBot_DiscordRpc_PresenceDetails {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc.PresenceDetails", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The second line of the Rich Presence display. Supports placeholders..
/// </summary>
internal static string ChatBot_DiscordRpc_PresenceState {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc.PresenceState", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The key of the large image asset uploaded to your Discord application..
/// </summary>
internal static string ChatBot_DiscordRpc_LargeImageKey {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc.LargeImageKey", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Tooltip text for the large image. Supports placeholders..
/// </summary>
internal static string ChatBot_DiscordRpc_LargeImageText {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc.LargeImageText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The key of the small image asset uploaded to your Discord application (leave empty to hide)..
/// </summary>
internal static string ChatBot_DiscordRpc_SmallImageKey {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc.SmallImageKey", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Tooltip text for the small image. Supports placeholders..
/// </summary>
internal static string ChatBot_DiscordRpc_SmallImageText {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc.SmallImageText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show elapsed session time in the Discord presence..
/// </summary>
internal static string ChatBot_DiscordRpc_ShowElapsedTime {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc.ShowElapsedTime", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show the online player count as a party size in the Discord presence..
/// </summary>
internal static string ChatBot_DiscordRpc_ShowPlayerCount {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc.ShowPlayerCount", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to How often (in seconds) to refresh the Discord presence. Minimum: 1.
/// </summary>
internal static string ChatBot_DiscordRpc_UpdateIntervalSeconds {
get {
return ResourceManager.GetString("ChatBot.DiscordRpc.UpdateIntervalSeconds", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Relay messages between players and servers, like a mail plugin
///This bot can store messages when the recipients are offline, and send them when they join the server