Skip to content

🚨 fix(ei_api): Add custom hatchery diff notification to admin channel#1935

Merged
mkmccarty merged 3 commits intomainfrom
mm-branch-1
Dec 12, 2025
Merged

🚨 fix(ei_api): Add custom hatchery diff notification to admin channel#1935
mkmccarty merged 3 commits intomainfrom
mm-branch-1

Conversation

@mkmccarty
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings December 12, 2025 05:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a Discord notification system that sends a direct message to the admin user when a configuration diff contains changes to the "ei_hatchery_custom" field. This allows the admin to be immediately notified of custom hatchery configuration changes detected in the Egg Inc API response.

Key Changes:

  • Added logic to detect "ei_hatchery_custom" string in configuration diffs
  • Implemented Discord DM notification to admin user with formatted diff output
  • Utilized Discord's TextDisplay component to present the diff in a code block

Comment thread src/ei/ei_api.go Outdated
Comment thread src/ei/ei_api.go Outdated
mkmccarty and others added 2 commits December 11, 2025 21:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mkmccarty mkmccarty merged commit 6ab194d into main Dec 12, 2025
12 checks passed
@mkmccarty mkmccarty deleted the mm-branch-1 branch December 12, 2025 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants