Skip to content

Commit 6ad39b9

Browse files
committed
doc(QuoteBoardConfig.java): update to reflect new configuration
1 parent 549f55f commit 6ad39b9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

application/src/main/java/org/togetherjava/tjbot/config/QuoteBoardConfig.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@JsonRootName("quoteBoardConfig")
1616
public record QuoteBoardConfig(
1717
@JsonProperty(value = "minimumScoreToTrigger", required = true) float minimumScoreToTrigger,
18-
@JsonProperty(required = true) String channel,
18+
@JsonProperty(value = "channel", required = true) String channel,
1919
@JsonProperty(value = "botEmoji", required = true) String botEmoji,
2020
@JsonProperty(value = "defaultEmojiScore", required = true) float defaultEmojiScore,
2121
@JsonProperty(value = "emojiScores", required = true) Map<String, Float> emojiScores) {
@@ -25,8 +25,9 @@ public record QuoteBoardConfig(
2525
*
2626
* @param minimumScoreToTrigger the minimum amount of reaction score for a message to be quoted
2727
* @param channel the pattern for the board channel
28-
* @param defaultEmojiScore the default score of an emoji if it's not in the emojiScores map
2928
* @param botEmoji the emoji with which the bot will mark quoted messages
29+
* @param defaultEmojiScore the default score of an emoji if it's not in the emojiScores map
30+
* @param emojiScores a map of each emoji's custom score
3031
*/
3132
public QuoteBoardConfig {
3233
if (minimumScoreToTrigger <= 0) {

0 commit comments

Comments
 (0)