Ejemplo n.º 1
0
 /**
  * Create the bots for the app and return true.
  *
  * @return
  * @throws Exception
  */
 @Override
 public Boolean call() {
   LOGGER.warn("Registering a bot for botAppId:{}", botAppId);
   BotRegistration registration = new BotRegistrationImpl();
   registration.registerBot(
       botAppId, MMXServerConstants.PLAYER_BOT_NAME, new RPSLSPlayerBotProcessor());
   LOGGER.warn("Bot registered for botAppId:{}", botAppId);
   return Boolean.TRUE;
 }
Ejemplo n.º 2
0
 /**
  * Create the bots for the app and return true.
  *
  * @return
  * @throws Exception
  */
 @Override
 public Boolean call() {
   LOGGER.warn("Registering a bot for botAppId:{}", botAppId);
   BotRegistration registration = new BotRegistrationImpl();
   registration.registerBot(
       botAppId,
       MMXServerConstants.AMAZING_BOT_NAME,
       new BotRegistrationImpl.AmazingBotProcessor());
   registration.registerBot(
       botAppId, MMXServerConstants.ECHO_BOT_NAME, new BotRegistrationImpl.EchoBotProcessor());
   LOGGER.warn("Bot registered for botAppId:{}", botAppId);
   return Boolean.TRUE;
 }