Skip to content

Add authenticated Mythic companion bot event transport - #20

Merged
Innygr merged 6 commits into
mainfrom
feature/mythic-bot-api-bridge
Oct 17, 2026
Merged

Innygr merged 6 commits into
mainfrom
feature/mythic-bot-api-bridge

Conversation

@Innygr

@Innygr Innygr commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add a server-only authenticated HTTPS client for outbound Mythic events to the companion bot.
  • Add bot-integration/mythic-api.js, a drop-in Node.js receiver for the Discord bot. It validates bearer tokens, bounds request size, validates payloads, sanitizes mentions, and posts accepted events to a configured Discord channel.
  • Keep credentials in environment/server config and send requests off the Minecraft server tick.
  • Allow the Mythic integration to use either a valid Discord webhook or the authenticated bot API.
  • Document server and bot-side setup.

Still outstanding

The receiver must be imported into the actual running bot entrypoint and configured on the bot host. This repo does not contain the bot's main index.js, so I cannot safely wire it into the live bot process here. The /mc-link account-link and team-sync approval queue are not connected by this event transport. Missile notifications remain hooks until real missile flight/impact/defence handlers call them.

CI is building both regular and Mythic variants.

@Innygr
Innygr merged commit cd3f2c9 into main Oct 17, 2026
2 checks passed
@Innygr
Innygr deleted the feature/mythic-bot-api-bridge branch October 17, 2026 19:03
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.

1 participant