Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements a daily encouragement message feature that automatically sends motivational content via a scheduler at 11 PM. It includes new repository, service, and scheduler components for handling encouragement messages, updates Discord message types and metadata accordingly, and adjusts migration scripts to remove the unused "type" field from motivation messages.
Reviewed Changes
Copilot reviewed 11 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/modules/domain/motivation-message/motivation-message.repository.ts | Adds repository logic to count and fetch motivation messages. |
| src/modules/domain/motivation-message/motivation-message.module.ts | Registers the repository and service; note a potential typo in the service file name. |
| src/modules/domain/motivation-message/motivatioin-message.service.ts | Provides a service to fetch a random motivation message with an edge-case return issue. |
| src/modules/domain/discord-message/discord-message.type.ts | Updates Discord message types to include encouragement messages. |
| src/modules/core/scheduler/services/daily-encouragement.scheduler.ts | Implements the scheduler to send daily encouragement messages to relevant channels. |
| src/modules/core/scheduler/scheduler.module.ts | Integrates the new daily encouragement scheduler into the scheduling module. |
| src/database/types/motivation.type.ts & index.ts | Removes the MotivationType enum which is no longer needed. |
| src/database/types/discord-message-metadate.ts | Updates metadata types to include encouragement message details (file name may contain a typo). |
| src/database/migrations/Migration20250402015813.ts | Adds migration steps to drop the "type" column from the motivation_messages table. |
| src/database/entities/motivation-message.entity.ts | Removes the motivational type property from the entity. |
Files not reviewed (3)
- docker/init/01-schema.sql: Language not supported
- docker/init/02-data.sql: Language not supported
- src/database/migrations/.snapshot-saebom.json: Language not supported
Comments suppressed due to low confidence (1)
src/database/types/discord-message-metadate.ts:1
- The filename 'discord-message-metadate.ts' appears to have a typographical error; consider renaming it to 'discord-message-metadata.ts' for clarity.
export type ProblemMetadata = {
src/modules/domain/motivation-message/motivation-message.module.ts
Outdated
Show resolved
Hide resolved
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.
🔗 관련 이슈
resolves #27
📝 작업 내용
📸 스크린샷
제일 마음에 드는 기능이다 🥺🐝🌸