-
-
Notifications
You must be signed in to change notification settings - Fork 91
Implement Quotes Board #1029
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
base: develop
Are you sure you want to change the base?
Implement Quotes Board #1029
Conversation
application/src/main/java/org/togetherjava/tjbot/features/Features.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
4a68771
to
bc3b7d6
Compare
35ba891
to
47cdcb2
Compare
There was a problem hiding this 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
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
47cdcb2
to
6d86c8f
Compare
ed3dbd5
to
59dc245
Compare
59dc245
to
35abd02
Compare
maybe it makes more sense to implement this with the new forward feature in discord? |
35abd02
to
7b19538
Compare
@SquidXTV This is now a feature! With the latest changes, we are now forwarding messages instead of embedding messages. Good suggestion :) |
bbde421
to
7d839d6
Compare
Good job <3 |
Thank you! I have updated the PR description. Thanks for pointing it out! |
application/src/main/java/org/togetherjava/tjbot/config/CoolMessagesBoardConfig.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java
Outdated
Show resolved
Hide resolved
9f303cd
to
8407d3f
Compare
gonna help with this |
For this feature, the version of JDA had to be bumped to 5.1.2
8407d3f
to
fb4fb5d
Compare
* minimumReactions-5, star symbol instead of encoding * requests changes by zabuzard except for moving getBoardChannel down and markMessageAsProcessed * Following JavaDocs guidelines of making the first letter capital * code refactoring * refactor: use correct method for reactionsCount It turns out that for each event fired, every *single* damn time, messageReaction.hasCount() would always return false. No matter what. Terrible documentation from JDA's side. As a result, because of the ternary operator: messageReaction.hasCount() ? messageReaction.getCount() + 1 : 1 the result of `reactionsCount` would always end up holding the value of one. In the following changes, we use `messageReaction.retrieveUsers()` to get a list of the people reacted, get a `Stream<User>` from that and get its count. Much more reliable this way and it also happens to be more readable. Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com> Co-authored-by: Chris Sdogkos <work@chris-sdogkos.com> Co-authored-by: Surya Tejess <74978874+suryatejess@users.noreply.github.com>
Since 1ade409 (refactor: code review addressed by Zabuzard, 2025-06-28) primarily contains a generaly vague JavaDoc describing what the `QuoteBoardForwarder.java` class is doing, a more descriptive one replaces it. Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>
Closes #1027.
Screenshots
Configuration changes
coolMessagesConfig.minimumReaction
for the target message to
be considered to the board channel.
coolMessagesConfig.boardChannelPattern
that should be quoted get posted to.
"quotes"
coolMessagesConfig.reactionEmoji
"U+2B50"