feat: Discord mesh bridge with live message forwarding#372
Open
SimmerV wants to merge 15 commits intoMeshAddicts:developfrom
Open
feat: Discord mesh bridge with live message forwarding#372SimmerV wants to merge 15 commits intoMeshAddicts:developfrom
SimmerV wants to merge 15 commits intoMeshAddicts:developfrom
Conversation
… active-node priority
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a live mesh-to-Discord bridge (webhook-based sender identities, gateway aggregation, rich embeds) plus Discord slash commands and PostgreSQL persistence to support linking/banning/tracking nodes.
Changes:
- Introduces Discord bridge event flow (MQTT → in-memory queue → Discord webhook posts/edits) with rich text/position embeds.
- Adds Discord slash commands for node linking and bridge moderation (ban + tracker/balloon).
- Extends PostgreSQL schema and storage layer with new Discord bridge tables and helper queries.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| storage/db/postgres.py | Adds query ordering and new DB helper methods for Discord bridge persistence (links/bans/tracking). |
| postgres/sql/schema.sql | Creates new Discord bridge tables (links, banned nodes, tracked nodes). |
| mqtt.py | Emits text/position events into an in-memory queue for the bridge. |
| memory_data_store.py | Adds discord_event_queue for MQTT→Discord event transport. |
| config.toml.sample | Documents new Discord bridge configuration options and channel mappings. |
| config.py | Adds default config + validation for Discord bridge settings. |
| bot/embeds.py | New embed builders for bridged text and position events (gateway grouping, deep links, map thumbnail). |
| bot/discord.py | Registers new cogs (admin commands + bridge). |
| bot/cogs/mesh_bridge.py | New MeshBridge cog that consumes queue events, aggregates, and posts/edits via webhooks. |
| bot/cogs/main_commands.py | Enhances /lookup and /mesh with DB-backed lookups and richer output. |
| bot/cogs/admin_commands.py | New slash commands for linking nodes and bridge moderation/tracking. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…for position embeds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary