File tree Expand file tree Collapse file tree
application/src/main/java/org/togetherjava/tjbot/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515@ JsonRootName ("quoteBoardConfig" )
1616public 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 ) {
You can’t perform that action at this time.
0 commit comments