feat: add /blogdigest and /youtubedigest slash commands#3
Merged
Conversation
…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>
Contributor
There was a problem hiding this comment.
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
/blogdigestand/youtubedigestapp 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
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>
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.
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 immediatelytree.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.