File tree Expand file tree Collapse file tree
main/java/co/aurasphere/botmill/kik
incoming/event/annotation
test/java/co/aurasphere/botmill/kik/annotation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 *
4747 * @return the event type
4848 */
49- EventType event () default EventType .TEXT_MESSAGE ;
49+ EventType eventType () default EventType .TEXT_MESSAGE ;
5050
5151 /**
5252 * Text.
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public void buildAnnotatedDomain() throws KikBotMillException {
100100 textOrPattern = botMillController .pattern ();
101101 }
102102 // set the event.
103- actionFrame .setEvent (toEvent (botMillController .event (),textOrPattern ));
103+ actionFrame .setEvent (toEvent (botMillController .eventType (),textOrPattern ));
104104 method .invoke (this ); // invoke the method.
105105
106106 // add the action frame to the context.
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ protected void buildAnnotatedDomain() throws KikBotMillException {
101101 textOrPattern = botMillController .pattern ();
102102 }
103103 // set the event.
104- actionFrame .setEvent (toEvent (botMillController .event (),textOrPattern ));
104+ actionFrame .setEvent (toEvent (botMillController .eventType (),textOrPattern ));
105105 method .invoke (this ); // invoke the method.
106106
107107 // add the action frame to the context.
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public class AnnotatedDomain extends AbstractKikBot {
5454 /**
5555 * Reply text.
5656 */
57- @ BotMillController (event = EventType .TEXT_MESSAGE , text = "v" )
57+ @ BotMillController (eventType = EventType .TEXT_MESSAGE , text = "v" )
5858 public void replyText () {
5959 reply (new LinkMessageReply () {
6060 @ Override
@@ -68,7 +68,7 @@ public LinkMessage processReply(Message message) {
6868 /**
6969 * Reply text 1.
7070 */
71- @ BotMillController (event = EventType .TEXT_PATTERN , pattern = "(?i:hi11)" )
71+ @ BotMillController (eventType = EventType .TEXT_PATTERN , pattern = "(?i:hi11)" )
7272 public void replyText1 () {
7373 reply (new LinkMessageReply () {
7474 @ Override
@@ -82,7 +82,7 @@ public LinkMessage processReply(Message message) {
8282 /**
8383 * Reply text 2.
8484 */
85- @ BotMillController (event = EventType .ANY )
85+ @ BotMillController (eventType = EventType .ANY )
8686 public void replyText2 () {
8787 reply (ReplyFactory .buildTextMessageReply ("yeaaasss" ));
8888 }
You can’t perform that action at this time.
0 commit comments