Created the NotFoundHandler to handle messages that could not be replied (for example not finished listeners)

This commit is contained in:
mathias 2021-10-02 17:22:12 +02:00
parent 3aca2239f2
commit d1dd4a5ab8
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A

View File

@ -0,0 +1,16 @@
package de.gnmyt.autoresponder.handler;
import java.util.List;
public abstract class NotFoundHandler {
/**
* Handles the specific request whenever the message could not be found
*
* @param sender The sender of the message / the creator of the request
* @param message The message that the author sent
* @return the list of messages that you want to reply
*/
public abstract List<String> handleRequest(String sender, String message);
}