Feature/capr 26 port privacy policy command - #60
Merged
shamikkarkhanis merged 8 commits intoFeb 6, 2026
Conversation
Contributor
Reviewer's GuideAdds a new Discord cog that exposes a /privacy slash command to display the bot’s privacy policy and data handling information via an ephemeral embed. Sequence diagram for the new /privacy slash command flowsequenceDiagram
actor User
participant DiscordClient as Discord_client
participant Bot as Discord_bot
participant Privacy as Privacy_cog
User->>DiscordClient: Trigger /privacy command
DiscordClient->>Bot: InteractionCreate event
Bot->>Privacy: privacy(interaction)
Privacy->>Privacy: Build privacy policy embed
Privacy->>Bot: interaction.response.send_message(embed, ephemeral=True)
Bot->>DiscordClient: Send ephemeral response
DiscordClient-->>User: Display privacy policy embed
Class diagram for the new Privacy cogclassDiagram
class Bot
class Privacy {
- bot Bot
- log Logger
+ Privacy(bot Bot)
+ privacy(interaction Interaction) async
}
class Interaction
class Logger
Bot <|.. Privacy : uses
Privacy ..> Interaction : handles
Privacy ..> Logger : logs
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In the
👥 Data Accessembed field, the concatenated strings for the last sentence lack a space between"third parties"and"or used", resulting in"third partiesor used"in the rendered text; add a trailing space to the first string or a leading space to the second. - The privacy policy content and the
Last updated: February 2024footer are hard-coded in the cog; consider centralizing this text (and date) in a configuration or constants module so the policy can be updated without code changes and stays consistent across commands.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In the `👥 Data Access` embed field, the concatenated strings for the last sentence lack a space between `"third parties"` and `"or used"`, resulting in `"third partiesor used"` in the rendered text; add a trailing space to the first string or a leading space to the second.
- The privacy policy content and the `Last updated: February 2024` footer are hard-coded in the cog; consider centralizing this text (and date) in a configuration or constants module so the policy can be updated without code changes and stays consistent across commands.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Member
|
shamikkarkhanis
deleted the
feature/capr-26-port-privacy-policy-command
branch
February 6, 2026 02:42
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.
Add privacy command
Summary by Sourcery
Add a new Discord cog that exposes a /privacy slash command for viewing the bot's privacy policy and data handling information.
New Features: