@@ -23,16 +23,22 @@ public final class Config {
23
23
private final String databasePath ;
24
24
private final String projectWebsite ;
25
25
private final String discordGuildInvite ;
26
+ private final String modAuditLogChannelPattern ;
27
+ private final String mutedRolePattern ;
26
28
27
29
@ JsonCreator (mode = JsonCreator .Mode .PROPERTIES )
28
30
private Config (@ JsonProperty ("token" ) String token ,
29
31
@ JsonProperty ("databasePath" ) String databasePath ,
30
32
@ JsonProperty ("projectWebsite" ) String projectWebsite ,
31
- @ JsonProperty ("discordGuildInvite" ) String discordGuildInvite ) {
33
+ @ JsonProperty ("discordGuildInvite" ) String discordGuildInvite ,
34
+ @ JsonProperty ("modAuditLogChannelPattern" ) String modAuditLogChannelPattern ,
35
+ @ JsonProperty ("mutedRolePattern" ) String mutedRolePattern ) {
32
36
this .token = token ;
33
37
this .databasePath = databasePath ;
34
38
this .projectWebsite = projectWebsite ;
35
39
this .discordGuildInvite = discordGuildInvite ;
40
+ this .modAuditLogChannelPattern = modAuditLogChannelPattern ;
41
+ this .mutedRolePattern = mutedRolePattern ;
36
42
}
37
43
38
44
/**
@@ -59,6 +65,25 @@ public static Config getInstance() {
59
65
"can not get the configuration before it has been loaded" );
60
66
}
61
67
68
+ /**
69
+ * Gets the REGEX pattern used to identify the role assigned to muted users.
70
+ *
71
+ * @return the role name pattern
72
+ */
73
+ public String getMutedRolePattern () {
74
+ return mutedRolePattern ;
75
+ }
76
+
77
+ /**
78
+ * Gets the REGEX pattern used to identify the channel that is supposed to contain all mod audit
79
+ * logs.
80
+ *
81
+ * @return the channel name pattern
82
+ */
83
+ public String getModAuditLogChannelPattern () {
84
+ return modAuditLogChannelPattern ;
85
+ }
86
+
62
87
/**
63
88
* Gets the token of the Discord bot to connect this application to.
64
89
*
0 commit comments