diff --git a/application/config.json.template b/application/config.json.template index ec8737824d..b5b591eff1 100644 --- a/application/config.json.template +++ b/application/config.json.template @@ -6,7 +6,7 @@ "discordGuildInvite": "https://discord.com/invite/XXFUXzK", "modAuditLogChannelPattern": "mod-audit-log", "modMailChannelPattern": "modmail", - "projectsChannelPattern": "projects" + "projectsChannelPattern": "projects", "mutedRolePattern": "Muted", "heavyModerationRolePattern": "Moderator", "softModerationRolePattern": "Moderator|Community Ambassador", diff --git a/application/src/main/java/org/togetherjava/tjbot/features/projects/ProjectsThreadCreatedListener.java b/application/src/main/java/org/togetherjava/tjbot/features/projects/ProjectsThreadCreatedListener.java index 74c961594f..18f51e9fe4 100644 --- a/application/src/main/java/org/togetherjava/tjbot/features/projects/ProjectsThreadCreatedListener.java +++ b/application/src/main/java/org/togetherjava/tjbot/features/projects/ProjectsThreadCreatedListener.java @@ -25,6 +25,12 @@ public final class ProjectsThreadCreatedListener extends ListenerAdapter impleme .expireAfterAccess(2, TimeUnit.of(ChronoUnit.MINUTES)) .build(); + /** + * Creates a new instance. + * + * @param config to work with the project related threads + */ + public ProjectsThreadCreatedListener(Config config) { configProjectsChannelPattern = config.getProjectsChannelPattern(); }