webchat / bot /bot.py
hhz520's picture
Upload 170 files
61517de
raw
history blame contribute delete
354 Bytes
"""
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