Skip to content

Conversation

@SebiWrn
Copy link
Collaborator

@SebiWrn SebiWrn commented Apr 17, 2025

Motivation and Context

This pull request adds previously mentioned reactions by students (look at #1564).
Closes #127.

The percentage below the reactions shows the usage in the last few minutes.

Available reactions can be modified in the config.yaml.

Important

Do not merge before #1564 !!

Screenshots

image
image

@SebiWrn SebiWrn requested a review from a team April 17, 2025 14:17
@SebiWrn SebiWrn self-assigned this Apr 17, 2025
@SebiWrn SebiWrn linked an issue Apr 17, 2025 that may be closed by this pull request
CustomMessage: "user not eligible to watch course",
})
return
}
Copy link
Member

Choose a reason for hiding this comment

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

optional: these three conditionals seem like they could be a separate function that could be reused?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will leave them there for now and they can be extracted if we need them somewhere else

go func() {
// Notify admins every 5 seconds
logger.Info("Starting periodic notification of reaction percentages")
for {
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this a leaking goroutine? You never end it or cancel it via a context?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This should be ok as this is only started once at the initialize and it will be stopped when the program stops.

@SebiWrn SebiWrn mentioned this pull request Jun 18, 2025
@SebiWrn SebiWrn requested a review from a team October 16, 2025 07:41
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.

Live reactions for lectures

3 participants