Skip to content

Commit 0f04908

Browse files
authored
add a comma in template config and document constructor for project listener (#1192)
minor fix in project listener related to config and documentation
1 parent 18c8f36 commit 0f04908

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

application/config.json.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"discordGuildInvite": "https://discord.com/invite/XXFUXzK",
77
"modAuditLogChannelPattern": "mod-audit-log",
88
"modMailChannelPattern": "modmail",
9-
"projectsChannelPattern": "projects"
9+
"projectsChannelPattern": "projects",
1010
"mutedRolePattern": "Muted",
1111
"heavyModerationRolePattern": "Moderator",
1212
"softModerationRolePattern": "Moderator|Community Ambassador",

application/src/main/java/org/togetherjava/tjbot/features/projects/ProjectsThreadCreatedListener.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ public final class ProjectsThreadCreatedListener extends ListenerAdapter impleme
2525
.expireAfterAccess(2, TimeUnit.of(ChronoUnit.MINUTES))
2626
.build();
2727

28+
/**
29+
* Creates a new instance.
30+
*
31+
* @param config to work with the project related threads
32+
*/
33+
2834
public ProjectsThreadCreatedListener(Config config) {
2935
configProjectsChannelPattern = config.getProjectsChannelPattern();
3036
}

0 commit comments

Comments
 (0)