diff --git a/src/main/java/de/gnmyt/autoresponder/SimpleAutoResponder.java b/src/main/java/de/gnmyt/autoresponder/SimpleAutoResponder.java index 1b98756..ed53b77 100644 --- a/src/main/java/de/gnmyt/autoresponder/SimpleAutoResponder.java +++ b/src/main/java/de/gnmyt/autoresponder/SimpleAutoResponder.java @@ -24,6 +24,7 @@ public class SimpleAutoResponder { private NotFoundHandler notFoundHandler = new SendNothingHandler(); private int port = 8025; + private String prefix = "/"; /** * Starts the auto responder server @@ -108,6 +109,24 @@ public class SimpleAutoResponder { return this; } + /** + * Gets the current command prefix + * + * @return the current command prefix + */ + public String getPrefix() { + return prefix; + } + + /** + * Sets the command prefix + * + * @param prefix The new command prefix + */ + public void setPrefix(String prefix) { + this.prefix = prefix; + } + /** * Gets the event manager *