Repository navigation
feat: send notifications to Discord and add Discord tools for agents - #1038
Merged
Merged
Conversation
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.
What
Members can get their notifications as Discord direct messages from a bot, and agents get seven Discord tools: send a message to a channel, a thread or a person, list servers, list channels and threads, read messages with their reactions, start a thread or a forum post, add a reaction, and find a member.
The instance application is set up in god mode, and a workspace owner can send through an application of their own. A member connects their Discord account with Discord sign-in and picks the events in their notification settings. The Slack and Discord tools are listed in catalog sections, like the other integrations.
Why
Teams that work in Discord get notifications and agent tools there, as teams on Slack already do.
How to test
<APP_URL>/discord/connect. Add the bot to a server you are in.The migration
0208_discord_notificationsadds three tables and adiscord_eventscolumn to both notification preference tables, and allows thediscorddelivery channel.Checklist
bun run typecheckpassesbun run lintandbun run format:checkpasstidy,code-reviewandsecurity-auditfrom.agents/skills/ran on the new codebun run db:generateand committed.env.exampleREADME.mdordocs/).AGENTS.mdchanged only asdocs/dev/agents-md.mdallowsbun run lintpasses;format:checkwas not run by hand, the pre-commit hook formatted the changed files. No new environment variables.Screenshots
None.