Skip to content

feat: add /blogdigest and /youtubedigest slash commands#3

Merged
MetzinAround merged 5 commits into
mainfrom
feat/manual-digest-commands
May 14, 2026
Merged

feat: add /blogdigest and /youtubedigest slash commands#3
MetzinAround merged 5 commits into
mainfrom
feat/manual-digest-commands

Conversation

@MetzinAround
Copy link
Copy Markdown
Contributor

Summary

Adds manual trigger slash commands for both digest types so admins can run a digest on-demand without waiting for the scheduled Thursday run.

Changes

  • /blogdigest — triggers the GitHub Blog digest immediately
  • /youtubedigest — triggers the YouTube digest immediately
  • Both commands require Manage Server permission (admins only)
  • Both respond ephemerally (only the invoker sees the confirmation)
  • Slash commands are synced to Discord on bot startup via tree.sync()

Why

The blog digest missed its scheduled run today due to the bot not being in the server. Once the bot is added, this command lets you verify everything is working without waiting until next Thursday.

…iggering

- Add /blogdigest slash command to BlogWatcher cog
- Add /youtubedigest slash command to YouTubeWatcher cog
- Both commands require manage_guild permission and respond ephemerally
- Sync slash command tree in setup_hook on startup

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds administrator-facing slash commands to trigger the existing blog and YouTube digest workflows on demand, plus startup syncing for Discord application commands.

Changes:

  • Added /blogdigest and /youtubedigest app commands in their respective cogs.
  • Manual commands defer ephemerally, fetch digest content, post embeds, and send confirmation follow-ups.
  • Added self.tree.sync() during bot startup to register slash commands.
Show a summary per file
File Description
bot/bot.py Syncs Discord slash commands after loading cogs.
bot/cogs/blog_watcher.py Adds the /blogdigest manual trigger command.
bot/cogs/youtube_watcher.py Adds the /youtubedigest manual trigger command.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 8

Comment thread bot/bot.py Outdated
Comment thread bot/bot.py Outdated
Comment thread bot/cogs/blog_watcher.py Outdated
Comment thread bot/cogs/blog_watcher.py Outdated
Comment thread bot/cogs/blog_watcher.py
Comment thread bot/cogs/youtube_watcher.py Outdated
Comment thread bot/cogs/youtube_watcher.py Outdated
Comment thread bot/cogs/youtube_watcher.py
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@MetzinAround MetzinAround merged commit 7e35190 into main May 14, 2026
1 check passed
@MetzinAround MetzinAround deleted the feat/manual-digest-commands branch May 14, 2026 21:20
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.

3 participants