78 Commits

Author SHA1 Message Date
c9171086d4
Created ResponderCommand#getRequiredElements. It gives you a list with a required elements of the command 2021-10-03 18:56:49 +02:00
1a6e74d05d
Integrated the UsageHandler into the SimpleAutoResponder 2021-10-03 18:56:18 +02:00
23b158c1eb
Created the SimpleUsageErrorHandler to handle the error with a simple error message 2021-10-03 18:53:37 +02:00
4c1b270c5e
Created the UsageHandler 2021-10-03 18:52:02 +02:00
138ba74906
Added comments to the Arguments class 2021-10-03 17:41:26 +02:00
aebb195855
Created Arguments#exists 2021-10-03 03:43:43 +02:00
902abf36e8
Added the UsageException 2021-10-03 03:41:33 +02:00
a93fb31bd0
Added the UsageExceptionType 2021-10-03 03:38:59 +02:00
48608a13df
Added the minimal & maximal length of the usage element 2021-10-03 03:25:13 +02:00
ef96640a9c
Added ResponderCommand#getUsageElements 2021-10-02 21:13:19 +02:00
2ba071f2ea
The usage of the registered command now automatically adds itself 2021-10-02 20:21:28 +02:00
42d9248caf
Added an annotation check to SimpleAutoResponder#registerCommand 2021-10-02 20:19:00 +02:00
1617540e0a
Integrated the controller into the ChatCommand & the GroupCommand 2021-10-02 20:17:32 +02:00
79378c2b47
Renamed CommandData to CommandData & integrated the reply function 2021-10-02 20:17:08 +02:00
45272ceca4
Updated ResponderGroupCommand#execute 2021-10-02 20:16:36 +02:00
f4fa5084d9
Updated ResponderChatCommand#execute 2021-10-02 20:16:19 +02:00
9e26c15f7d
Removed the ChatAnswerController.java & the GroupAnswerController.java 2021-10-02 20:15:52 +02:00
154ad3150d
Moved ResponderEvent#reply to HttpResponseController#reply 2021-10-02 19:40:51 +02:00
37b4000da3
Reformatted the ResponderContext 2021-10-02 18:43:01 +02:00
ec96f7f860
Reformatted the ResponderContext 2021-10-02 18:42:44 +02:00
8f719cec41
Added the commands variable to the SimpleAutoResponder to register & get commands 2021-10-02 18:38:43 +02:00
cde48b5480
Changed the parameter type in the ResponderChatCommand & the ResponderGroupCommand 2021-10-02 18:38:05 +02:00
1fc4bdf9b6
Created the ChatAnswerController 2021-10-02 18:36:43 +02:00
abc2b4f389
Renamed AnswerController.java to GroupAnswerController 2021-10-02 18:36:18 +02:00
51e7a429cb
Changed the return type of SimpleAutoResponder#setPrefix 2021-10-02 18:32:43 +02:00
a7f81e8dd2
Integrated SimpleAutoResponder#prefix (also SimpleAutoResponder#getPrefix & SimpleAutoResponder#setPrefix) 2021-10-02 18:32:09 +02:00
09bdf731f2
Integrated the ResponderContext#sendNotFoundReply to send messages that could not be identified 2021-10-02 17:58:15 +02:00
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
ab0da5e43d
Integrated the NotFoundHandler into the SimpleAutoResponder 2021-10-02 17:32:24 +02:00
ec11772115
Created the SendNothingHandler. It sends no message if the message could not be found 2021-10-02 17:27:50 +02:00
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
aca8c36dfd
Created the DialogflowHandler. Useful to redirect not found messages to dialogflow 2021-10-02 17:24:21 +02:00
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
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
0064a65c6d
Created the DialogflowIntegration to get messages directly from the dialogflow api 2021-10-02 17:09:10 +02:00
b172d8a9c3
Added the dialogflow dependency to the pom.xml 2021-10-02 17:07:03 +02:00
9fb6381d77
Created the execute method in the ResponderGroupCommand 2021-10-02 01:45:43 +02:00
51652a2e2e
Created the execute method in the ResponderChatCommand 2021-10-02 01:45:35 +02:00
6c478d6834
Created the AnswerController 2021-10-02 01:45:12 +02:00
47782529a7
Added comments in the ResponderCommand 2021-10-02 01:38:15 +02:00
0ffd6ad58c
Created the SimpleUsageBuilder to build a custom usage 2021-10-02 01:36:54 +02:00
6d2947b527
Created the UsageElement object 2021-10-02 01:36:09 +02:00
02bd3bd75e
Created the UsageType enum 2021-10-02 01:29:27 +02:00
a3cf1f4017
Created the ResponderCommand 2021-10-02 01:29:12 +02:00
2a2120690b
Changed aliases to triggers in CommandInfo 2021-10-02 01:05:20 +02:00
6273615273
Created the CommandInfo with basic information 2021-10-02 01:04:49 +02:00
d1609478e4
SimpleAutoResponder#registerListener now returns itself 2021-10-02 00:59:59 +02:00
4f3aa469bd
Created the GroupCommandData entity 2021-10-02 00:57:14 +02:00
9cd11d04b9
Created the ChatCommandData entity 2021-10-02 00:57:02 +02:00
bb818d057f
Created the CommandData entity 2021-10-02 00:56:49 +02:00