mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-01-19 01:21:01 +08:00
18 lines
354 B
Python
18 lines
354 B
Python
"""
|
|
Auto-replay chat robot abstract class
|
|
"""
|
|
|
|
|
|
from bridge.context import Context
|
|
from bridge.reply import Reply
|
|
|
|
|
|
class Bot(object):
|
|
def reply(self, query, context: Context = None) -> Reply:
|
|
"""
|
|
bot auto-reply content
|
|
:param req: received message
|
|
:return: reply content
|
|
"""
|
|
raise NotImplementedError
|