Skip to content

feat: let AskAI Discord bot see channels in the server#7480

Merged
The-Best-Codes merged 3 commits intomainfrom
best/askai-discord-context
Feb 24, 2026
Merged

feat: let AskAI Discord bot see channels in the server#7480
The-Best-Codes merged 3 commits intomainfrom
best/askai-discord-context

Conversation

@The-Best-Codes
Copy link
Collaborator

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

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Tested manually.

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 The-Best-Codes self-assigned this Feb 24, 2026
Copy link
Collaborator Author

@The-Best-Codes The-Best-Codes left a comment

Choose a reason for hiding this comment

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

Ready for review

Copy link
Contributor

@katzdave katzdave left a comment

Choose a reason for hiding this comment

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

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) : "";
Copy link
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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?

@The-Best-Codes
Copy link
Collaborator Author

@katzdave

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.

I got that all figured out with Ebony, so it should be good to go 😀

@The-Best-Codes The-Best-Codes added this pull request to the merge queue Feb 24, 2026
Merged via the queue into main with commit 134114a Feb 24, 2026
20 checks passed
@The-Best-Codes The-Best-Codes deleted the best/askai-discord-context branch February 24, 2026 20:03
@The-Best-Codes The-Best-Codes removed the request for review from EbonyLouis February 24, 2026 20:30
zanesq added a commit that referenced this pull request Feb 25, 2026
…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)
u35tpus pushed a commit to u35tpus/goose that referenced this pull request Feb 26, 2026
Signed-off-by: The-Best-Codes <106822363+The-Best-Codes@users.noreply.github.com>
Signed-off-by: Oleg Levchenko <oleg.levchenko@ooma.com>
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