Class BotFactory

java.lang.Object
com.mikuac.shiro.core.BotFactory

@Component public class BotFactory extends Object
Created on 2021/7/7.
  • Constructor Details

    • BotFactory

      public BotFactory()
  • Method Details

    • setActionHandler

      @Autowired public void setActionHandler(ActionHandler actionHandler)
    • setShiroProperties

      @Autowired public void setShiroProperties(ShiroProperties shiroProperties)
    • setApplicationContext

      @Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    • createBot

      public Bot createBot(long selfId, org.springframework.web.socket.WebSocketSession session)
      创建Bot对象
      Parameters:
      selfId - 机器人账号
      session - WebSocketSession
      Returns:
      Bot