Skip to content

Welcome users with a time-of-day greeting#29

Open
joebew42 wants to merge 5 commits into
masterfrom
issue-28-feat-welcome-the-user-with-different-greeting-message-based-on-the-time-of-the-day
Open

Welcome users with a time-of-day greeting#29
joebew42 wants to merge 5 commits into
masterfrom
issue-28-feat-welcome-the-user-with-different-greeting-message-based-on-the-time-of-the-day

Conversation

@joebew42

@joebew42 joebew42 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Context

When a user joins a chat room they receive a static welcome message (welcome to the <room> chat room, <user>!). We want the greeting to feel more personal and time-aware, so that someone joining in the morning is welcomed differently from someone joining late at night.

This PR

Prefixes the join welcome message with a time-of-day greeting addressed to the user, producing messages like Good morning, a-user! Welcome to the default chat room, a-user!. The mapping from the current time to one of four greetings (morning, afternoon, evening, night) lives in a small pure ExChat.Greeting module, and JoinChatRoom.on/2 takes an injectable clock so the behaviour stays deterministic under test.

Closes #28

@joebew42 joebew42 self-assigned this Jul 1, 2026
@joebew42
joebew42 marked this pull request as ready for review July 1, 2026 15:04
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.

Welcome the user with different greeting message based on the time of the day

1 participant