Commit Graph
68 Commits
Author SHA1 Message Date
Mathias 2ba071f2ea The usage of the registered command now automatically adds itself 2021-10-02 20:21:28 +02:00
Mathias 42d9248caf Added an annotation check to SimpleAutoResponder#registerCommand 2021-10-02 20:19:00 +02:00
Mathias 1617540e0a Integrated the controller into the ChatCommand & the GroupCommand 2021-10-02 20:17:32 +02:00
Mathias 79378c2b47 Renamed CommandData to CommandData & integrated the reply function 2021-10-02 20:17:08 +02:00
Mathias 45272ceca4 Updated ResponderGroupCommand#execute 2021-10-02 20:16:36 +02:00
Mathias f4fa5084d9 Updated ResponderChatCommand#execute 2021-10-02 20:16:19 +02:00
Mathias 9e26c15f7d Removed the ChatAnswerController.java & the GroupAnswerController.java 2021-10-02 20:15:52 +02:00
Mathias 154ad3150d Moved ResponderEvent#reply to HttpResponseController#reply 2021-10-02 19:40:51 +02:00
Mathias 37b4000da3 Reformatted the ResponderContext 2021-10-02 18:43:01 +02:00
Mathias ec96f7f860 Reformatted the ResponderContext 2021-10-02 18:42:44 +02:00
Mathias 8f719cec41 Added the commands variable to the SimpleAutoResponder to register & get commands 2021-10-02 18:38:43 +02:00
Mathias cde48b5480 Changed the parameter type in the ResponderChatCommand & the ResponderGroupCommand 2021-10-02 18:38:05 +02:00
Mathias 1fc4bdf9b6 Created the ChatAnswerController 2021-10-02 18:36:43 +02:00
Mathias abc2b4f389 Renamed AnswerController.java to GroupAnswerController 2021-10-02 18:36:18 +02:00
Mathias 51e7a429cb Changed the return type of SimpleAutoResponder#setPrefix 2021-10-02 18:32:43 +02:00
Mathias a7f81e8dd2 Integrated SimpleAutoResponder#prefix (also SimpleAutoResponder#getPrefix & SimpleAutoResponder#setPrefix) 2021-10-02 18:32:09 +02:00
Mathias 09bdf731f2 Integrated the ResponderContext#sendNotFoundReply to send messages that could not be identified 2021-10-02 17:58:15 +02:00
Mathias f754b87b73 Created the RandomErrorHandler to send randomized error messages from a list to the author if the message could not be found 2021-10-02 17:41:50 +02:00
Mathias ab0da5e43d Integrated the NotFoundHandler into the SimpleAutoResponder 2021-10-02 17:32:24 +02:00
Mathias ec11772115 Created the SendNothingHandler. It sends no message if the message could not be found 2021-10-02 17:27:50 +02:00
Mathias d94480bb4e Created the SendErrorHandler. Useful to send custom error messages to the user whenever the message could not be found 2021-10-02 17:27:11 +02:00
Mathias aca8c36dfd Created the DialogflowHandler. Useful to redirect not found messages to dialogflow 2021-10-02 17:24:21 +02:00
Mathias d1dd4a5ab8 Created the NotFoundHandler to handle messages that could not be replied (for example not finished listeners) 2021-10-02 17:22:12 +02:00
Mathias 3aca2239f2 Added the responseSent variable to the HttpResponseController to check if the response has already been sent to prevent errors 2021-10-02 17:11:28 +02:00
Mathias 0064a65c6d Created the DialogflowIntegration to get messages directly from the dialogflow api 2021-10-02 17:09:10 +02:00
Mathias b172d8a9c3 Added the dialogflow dependency to the pom.xml 2021-10-02 17:07:03 +02:00
Mathias 9fb6381d77 Created the execute method in the ResponderGroupCommand 2021-10-02 01:45:43 +02:00
Mathias 51652a2e2e Created the execute method in the ResponderChatCommand 2021-10-02 01:45:35 +02:00
Mathias 6c478d6834 Created the AnswerController 2021-10-02 01:45:12 +02:00
Mathias 47782529a7 Added comments in the ResponderCommand 2021-10-02 01:38:15 +02:00
Mathias 0ffd6ad58c Created the SimpleUsageBuilder to build a custom usage 2021-10-02 01:36:54 +02:00
Mathias 6d2947b527 Created the UsageElement object 2021-10-02 01:36:09 +02:00
Mathias 02bd3bd75e Created the UsageType enum 2021-10-02 01:29:27 +02:00
Mathias a3cf1f4017 Created the ResponderCommand 2021-10-02 01:29:12 +02:00
Mathias 2a2120690b Changed aliases to triggers in CommandInfo 2021-10-02 01:05:20 +02:00
Mathias 6273615273 Created the CommandInfo with basic information 2021-10-02 01:04:49 +02:00
Mathias d1609478e4 SimpleAutoResponder#registerListener now returns itself 2021-10-02 00:59:59 +02:00
Mathias 4f3aa469bd Created the GroupCommandData entity 2021-10-02 00:57:14 +02:00
Mathias 9cd11d04b9 Created the ChatCommandData entity 2021-10-02 00:57:02 +02:00
Mathias bb818d057f Created the CommandData entity 2021-10-02 00:56:49 +02:00
Mathias 6085e29b75 Added SimpleAutoResponder#registerListener 2021-10-02 00:48:19 +02:00
Mathias efd0bdc6a6 Updated the access modifier of SimpleAutoResponder#registerContext 2021-10-02 00:42:17 +02:00
Mathias 52899f5c60 Integrated the reply method into the ResponderEvent 2021-10-02 00:18:56 +02:00
Mathias 3155f54a6a Integrated the responder context into the SimpleAutoResponder 2021-10-02 00:18:32 +02:00
Mathias 4f3e503860 Created the ResponderContext 2021-10-02 00:16:59 +02:00
Mathias 28fb627491 Created the HttpResponseController 2021-10-01 23:51:09 +02:00
Mathias 8d2722e7bb Created the Response object 2021-10-01 23:48:16 +02:00
Mathias be3e36de89 Created the SimpleHttpHandler 2021-10-01 23:47:49 +02:00
Mathias f2d0d85e90 Created the GroupMessageReceivedEvent 2021-10-01 23:45:21 +02:00
Mathias 11cb02e408 Created the ChatMessageReceivedEvent 2021-10-01 23:45:07 +02:00
Mathias b6dd6636ab Integrated the HttpResponseController into the ResponderEvent 2021-10-01 23:44:38 +02:00
Mathias 7ad7d0f538 Made EventManager#register private 2021-10-01 23:34:13 +02:00
Mathias 8fdedab492 Created the ResponderEvent 2021-10-01 20:09:18 +02:00
Mathias cc2bf61b1c Integrated the EventManager into the SimpleAutoResponder 2021-10-01 20:05:17 +02:00
Mathias 7c410dc1e5 Created the EventManager 2021-10-01 20:04:35 +02:00
Mathias d4785bea5b Created the Listener 2021-10-01 19:29:57 +02:00
Mathias 0c04106254 Created the EventData 2021-10-01 19:29:28 +02:00
Mathias c67ce9a93b Created the EventListener 2021-10-01 19:28:22 +02:00
Mathias d2f04df033 Integrated jackson & slf4j into the pom.xml 2021-10-01 19:11:09 +02:00
Mathias 5e9caa7daf Integrated an authentication method into the SimpleAutoResponder 2021-10-01 18:56:19 +02:00
Mathias 66825c9a0e Created the ResponderAuthentication to authenticate a specific request 2021-10-01 18:52:32 +02:00
Mathias 5b7e4e3de0 Moved SimpleAutoResponder#setPort & SimpleAutoResponder#getPort to the bottom of the file 2021-10-01 18:24:12 +02:00
Mathias 578ac9e5e9 Created the AuthenticationDetails helper to help the SimpleAutoResponder understanding which authentication details should be used 2021-10-01 18:22:46 +02:00
Mathias c3db497d1b Created the SimpleAutoResponder class 2021-10-01 18:16:04 +02:00
Mathias 2c5ee96c12 Created the ResponderException 2021-10-01 18:11:07 +02:00
Mathias 74265cc3a4 Created the .gitignore with my default exclusions 2021-10-01 17:49:19 +02:00
Mathias 4cebb35e67 Created the README.md 2021-10-01 17:48:58 +02:00
Mathias 9b1d36a41c Created the default pom.xml 2021-10-01 17:46:45 +02:00