No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

16 líneas
302B

  1. """
  2. channel factory
  3. """
  4. from bot.baidu.baidu_unit_bot import BaiduUnitBot
  5. def create_bot(bot_type):
  6. """
  7. create a channel instance
  8. :param channel_type: channel type code
  9. :return: channel instance
  10. """
  11. if bot_type == 'baidu':
  12. return BaiduUnitBot()
  13. raise RuntimeError