Skip to content

Add notify bell function#1

Open
angelovianajr wants to merge 3 commits into
mainfrom
bell-notify
Open

Add notify bell function#1
angelovianajr wants to merge 3 commits into
mainfrom
bell-notify

Conversation

@angelovianajr
Copy link
Copy Markdown
Collaborator

No description provided.

@angelovianajr angelovianajr self-assigned this Jul 16, 2025
@angelovianajr angelovianajr added the enhancement New feature or request label Jul 16, 2025
Copy link
Copy Markdown
Owner

@danielpires danielpires left a comment

Choose a reason for hiding this comment

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

I love this feature, is there a way to not spam the user with bell rings? like a cool down period for an already notified used

Comment thread public/index.html Outdated
Comment thread public/index.html
Comment on lines +277 to +284
if (user.name !== username) {
const bellButton = document.createElement("button");
bellButton.className = "bell-button";
bellButton.innerHTML = "🔔";
bellButton.onclick = () => notifyUser(user.name);
bellButton.title = `Notify ${user.name}`;
seat.appendChild(bellButton);
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

to avoid abuse let's have this bell only if the player hasn't voted yet, and at least the majority of player in the room already voted

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.

2 participants