18 lines
354B

  1. """
  2. Auto-replay chat robot abstract class
  3. """
  4. from bridge.context import Context
  5. from bridge.reply import Reply
  6. class Bot(object):
  7. def reply(self, query, context: Context = None) -> Reply:
  8. """
  9. bot auto-reply content
  10. :param req: received message
  11. :return: reply content
  12. """
  13. raise NotImplementedError