/** * 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; }
/** * 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; }