Skip to content

Conversation

@chrisdedman
Copy link
Collaborator

@chrisdedman chrisdedman commented Oct 18, 2025

Description

Implemented a ReminderCog that allows users to set reminders with customizable timers. The implementation includes timer parsing, scheduling jobs, and sending notifications via embedded messages.

This PR resolves the issue #116

Usage

with the slash command:

/reminder timer 2h message: "Take a break from coding"
/reminder timer: 30m message: "Break is over! Time to start working again."

Without the slash command:

::reminder 1d Time to start the new project

Available characters time for reminder are s=second, m=minutes, h=hour, d=day

Demo

Screenshot 2025-10-22 at 08 52 21

@chrisdedman chrisdedman self-assigned this Oct 18, 2025
@chrisdedman chrisdedman added the enhancement New feature or request label Oct 18, 2025
@chrisdedman
Copy link
Collaborator Author

chrisdedman commented Oct 18, 2025

@PenguinBoi12 I have the unit test to write, but I will once we agree that this implementation logic is good.

edit: I went ahead and built a unit test. I think, regardless of the logic, the return value should be the same, so it can be tested.

…minder command behavior

- Add tests/extensions/test_reminder_cog.py
- Verify timer parsing for valid and invalid formats
- Assert _build_timer returns timedelta and _build_embed returns Embed
- Test reminder command success and failure paths using AsyncMock/fixtures
Copy link
Contributor

@PenguinBoi12 PenguinBoi12 left a comment

Choose a reason for hiding this comment

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

The feature is well built but the test could be improved.

Copy link
Contributor

@PenguinBoi12 PenguinBoi12 left a comment

Choose a reason for hiding this comment

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

Looks good, that's an awesome feature. Well done!

@PenguinBoi12 PenguinBoi12 merged commit a93aadf into main Oct 23, 2025
3 checks passed
@PenguinBoi12 PenguinBoi12 deleted the feature/reminder branch October 23, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants