mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-04 16:45:44 +00:00
[AB-218] adding ability to split the normal message as well according to custom configuration
adding ability to define the max amount of messages resulting from a template on a server and template base fixing not always considering the server when rendering templates in various places
This commit is contained in:
@@ -13,6 +13,7 @@ public class CoreFeatureConfig implements FeatureConfig {
|
||||
public static final String NO_COMMAND_REPORTING_CONFIG_KEY = "noCommandFoundReporting";
|
||||
public static final String SUCCESS_REACTION_KEY = "successReaction";
|
||||
public static final String WARN_REACTION_KEY = "warnReaction";
|
||||
public static final String MAX_MESSAGES_KEY = "maxMessages";
|
||||
|
||||
@Override
|
||||
public FeatureDefinition getFeature() {
|
||||
@@ -26,6 +27,6 @@ public class CoreFeatureConfig implements FeatureConfig {
|
||||
|
||||
@Override
|
||||
public List<String> getRequiredSystemConfigKeys() {
|
||||
return Arrays.asList(NO_COMMAND_REPORTING_CONFIG_KEY);
|
||||
return Arrays.asList(NO_COMMAND_REPORTING_CONFIG_KEY, MAX_MESSAGES_KEY);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public class MessageToSend {
|
||||
/**
|
||||
* The string content to be used in the first message.
|
||||
*/
|
||||
private String message;
|
||||
private List<String> messages;
|
||||
/**
|
||||
* The file handle to send attached to the message.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user