You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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