Skip to content

feat(commands): add add_reminder command#171

Merged
Akinator31 merged 4 commits intomainfrom
169-add-reminder-command
Oct 8, 2025
Merged

feat(commands): add add_reminder command#171
Akinator31 merged 4 commits intomainfrom
169-add-reminder-command

Conversation

@Akinator31
Copy link
Copy Markdown
Member

This pull request introduces a new reminders feature to the codebase, allowing users to schedule reminders via both slash and text commands. It includes the necessary database migration, query definitions, command implementations, and user feedback mechanisms. Additionally, it updates help documentation to reflect the new functionality and ensures configuration compatibility.

Reminders Feature Implementation:

  • Database Schema and Queries:

    • Adds a new reminders table with relevant fields and foreign key constraints via a migration (migrations/20251007111259_create_reminders_table.sql).
    • Introduces new SQLx query definitions for inserting, updating, and selecting reminders (.sqlx/query-8d256f5308e9c3af3f409d5097302f9794287b06f89da6c7f4a86efcd37b151a.json, .sqlx/query-1f2332afc3824ca0790ef097ff1d48074feaa48de9844e0e30d7e6fe96ad5e44.json, .sqlx/query-b9420d5d850bf8fc05beb8594611533139e47e3df927153e8cb15fe7451fdc4b.json). [1] [2] [3]
  • Command Implementations:

    • Implements the reminders feature for both slash and text commands, including parsing, validation, and scheduling logic (src/commands/add_reminder/slash_command/add_reminder.rs, src/commands/add_reminder/text_command/add_reminder.rs). [1] [2]
    • Provides shared logic for confirmation messages and reminder spawning (src/commands/add_reminder/common.rs).
    • Adds module structure for the new commands (src/commands/add_reminder/mod.rs, src/commands/add_reminder/slash_command/mod.rs, src/commands/add_reminder/text_command/mod.rs). [1] [2]
  • User Feedback and Documentation:

    • Updates help command output to include the new !add_rap (add reminder) command in both slash and text help messages (src/commands/help/slash_command/help.rs, src/commands/help/text_command/help.rs). [1] [2]

Configuration and Dependency Updates:

  • Configuration:

    • Ensures ReminderConfig is included in test and default configuration setups (src/commands/edit/common.rs). [1] [2]
  • Dependencies:

    • Adds the regex crate to Cargo.toml to support time parsing for reminders.

These changes collectively enable users to set reminders, store them persistently, and receive notifications at the scheduled time, with robust user feedback and integration into the existing command system.

@Akinator31 Akinator31 self-assigned this Oct 8, 2025
@Akinator31 Akinator31 linked an issue Oct 8, 2025 that may be closed by this pull request
@Akinator31 Akinator31 merged commit 3ad8ed4 into main Oct 8, 2025
6 checks passed
@Akinator31 Akinator31 deleted the 169-add-reminder-command branch October 8, 2025 08:10
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.

Add reminder command

1 participant