feat: let AskAI Discord bot see channels in the server#7480
feat: let AskAI Discord bot see channels in the server#7480The-Best-Codes merged 3 commits intomainfrom
Conversation
Signed-off-by: The-Best-Codes <106822363+The-Best-Codes@users.noreply.github.com>
Signed-off-by: The-Best-Codes <106822363+The-Best-Codes@users.noreply.github.com>
Signed-off-by: The-Best-Codes <106822363+The-Best-Codes@users.noreply.github.com>
The-Best-Codes
left a comment
There was a problem hiding this comment.
Ready for review
katzdave
left a comment
There was a problem hiding this comment.
Nice! Not sure the exact permission set on the bot but you might need some support from devrel to get read access to list channels.
|
|
||
| const questionChannelId = process.env.QUESTION_CHANNEL_ID; | ||
| const guild = message.guild; | ||
| const serverContext = guild ? await buildServerContext(guild) : ""; |
There was a problem hiding this comment.
Maybe think about making this a little more global w/ a cache vs on every message.
But I don't think we're getting enough volume to really need to worry about discord rate limits.
There was a problem hiding this comment.
Discord.js already has built-in caching but I can look into that :)
If I add one in a later PR, it's got to be invalidated periodically as well, I wonder how often?
I got that all figured out with Ebony, so it should be good to go 😀 |
…m-cache * 'main' of github.com:block/goose: chore(release): release version 1.25.0 (minor) (#7263) Docs: Community all-stars and page update (#7483) fix: searchbar zindex modal overlay (#7502) blog: Order Lunch Without Leaving Your AI Agent (#7505) feat: gateway to chat to goose - telegram etc (#7199) Option to add changeable defaults in goose-releases (#7373) Fix out of order messages (#7472) fix: ensure latest session always displays in sidebar (#7489) docs: rename TLDR to Quick Install in MCP tutorials (#7493) docs: update Neighborhood extension page with video embed and layout improvements (#7473) feat: let AskAI Discord bot see channels in the server (#7480) Apps token limit (#7474) fix(apps): declare color-scheme to allow transparent MCP App iframes (#7479)
Signed-off-by: The-Best-Codes <106822363+The-Best-Codes@users.noreply.github.com> Signed-off-by: Oleg Levchenko <oleg.levchenko@ooma.com>
Summary
Gives the ask-ai Discord bot a list of the channels in the server in its system prompt so it can guide users to the correct channel when answering their questions about the server.
Type of Change
AI Assistance
Testing
Tested manually.