File tree Expand file tree Collapse file tree
src/main/java/co/aurasphere/botmill/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <modelVersion >4.0.0</modelVersion >
44 <groupId >co.aurasphere.botmill</groupId >
55 <artifactId >botmill-core</artifactId >
6- <version >1.0.0</version >
6+ <version >1.0.0-SNAPSHOT </version >
77 <name >BotMill Core</name >
88 <description >Shared library for the BotMill framework.</description >
99
Original file line number Diff line number Diff line change @@ -35,6 +35,6 @@ public interface BotDefinition {
3535 /**
3636 * Method used for the configuration of the bot.
3737 */
38- public void defineBehavior ();
38+ void defineBehaviour ();
3939
4040}
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ public static void loadBotDefinitions() {
5555 Reflections ref = new Reflections ();
5656 Set <Class <? extends BotDefinition >> botDefinitions = ref
5757 .getSubTypesOf (BotDefinition .class );
58+
5859 if (botDefinitions .isEmpty ()) {
5960 logger .warn ("No bot definition found on the classpath. Make sure to have at least one class implementing the BotDefinition interface." );
6061 }
@@ -69,7 +70,7 @@ public static void loadBotDefinitions() {
6970
7071 try {
7172 BotDefinition instance = defClass .newInstance ();
72- instance .defineBehavior ();
73+ instance .defineBehaviour ();
7374 } catch (ClassCastException e ) {
7475 logger .error (
7576 "Class [{}] does not implement co.aurasphere.botmill.common.BotDefinition." ,
You can’t perform that action at this time.
0 commit comments