Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Quotes Board #1029

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from

Conversation

christolis
Copy link
Member

@christolis christolis commented Feb 21, 2024

Closes #1027.

Screenshots

image

Configuration changes

Property Description Type Default
coolMessagesConfig.minimumReaction The minimum amount of reactions needed
for the target message to
be considered to the board channel.
int 1
coolMessagesConfig.boardChannelPattern A pattern of the channel where messages
that should be quoted get posted to.
String "quotes"

@christolis christolis requested review from a team as code owners February 21, 2024 13:29
@Taz03 Taz03 marked this pull request as draft February 22, 2024 00:43
@christolis christolis marked this pull request as ready for review February 28, 2024 10:27
@christolis christolis marked this pull request as draft March 2, 2024 00:03
@christolis christolis marked this pull request as ready for review March 2, 2024 00:59
@christolis christolis requested a review from tj-wazei March 2, 2024 01:00
Copy link
Member

@Taz03 Taz03 left a comment

Choose a reason for hiding this comment

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

add a message about config changes on main pr message, moderators said its hard to keep track of it otherwise

Taz03
Taz03 previously approved these changes Apr 14, 2024
Fixes a bug where any user could star react to a message and the bot
would unconditionally add that message to the cool messages board,
considering the fact that it would surpass the minimum reaction
count requirement.

This commit gets the bot to react with the same cool messages emoji the
first time and use that reaction as proof that it has quoted the message
and that it should not deal with it in case somebody reacts to it again.
By the time we need to get the contents of boardChannel when we attempt
to insert the cool message, the boardChannel's optional will never be
empty, so use Optional#get() instead.
@ankitsmt211 ankitsmt211 added the config-changes if your PR contains any changes related to config file label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config-changes if your PR contains any changes related to config file
Projects
Status: Ready For Review
Development

Successfully merging this pull request may close these issues.

Cool messages board feature
4 participants