Skip to content

feat: add categories to bot posts via centralized mapping#9

Merged
aquie00t merged 1 commit into
mainfrom
feature/add-categories-to-posts
May 18, 2026
Merged

feat: add categories to bot posts via centralized mapping#9
aquie00t merged 1 commit into
mainfrom
feature/add-categories-to-posts

Conversation

@aquie00t
Copy link
Copy Markdown
Contributor

  • Introduced BOT_CATEGORIES in src/core/botCategories.js to map bot names to their respective categories.
  • Updated TdnClient.createPost in src/api/client.js to automatically inject categories from the mapping.
  • Supports multi-category bots (e.g., [FRONTEND, BACKEND]) falling back to an empty array if no mapping exists.

Summary

Type of change

  • New bot(s) added
  • Bug fix
  • Refactor / code quality
  • Documentation
  • Other:

Checklist

  • pnpm exec prettier --check . passes
  • No config.json, *_state.json, or scripts/.setup-state.json committed
  • New bots are registered in src/index.js and scripts/setup-bots.js
  • RSS feed URLs were verified to return valid XML before adding a news bot

- Introduced BOT_CATEGORIES in src/core/botCategories.js to map bot names to their respective categories.
- Updated TdnClient.createPost in src/api/client.js to automatically inject categories from the mapping.
- Supports multi-category bots (e.g., [FRONTEND, BACKEND])
falling back to an empty array if no mapping exists.
@aquie00t aquie00t merged commit 0529b47 into main May 18, 2026
2 checks passed
@aquie00t aquie00t deleted the feature/add-categories-to-posts branch May 18, 2026 23:53
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