Fox-V3/chatter/chatterbot/output/output_adapter.py
Toby Harradine b11ee85bdd Use relative imports in cogs (#49)
* [ChatterBot] Use relative imports

* [Werewolf] Use relative imports

* [Chatter] Use relative imports
2019-04-07 23:31:36 -04:00

21 lines
630 B
Python

from ..adapters import Adapter
class OutputAdapter(Adapter):
"""
A generic class that can be overridden by a subclass to provide extended
functionality, such as delivering a response to an API endpoint.
"""
def process_response(self, statement, session_id=None):
"""
Override this method in a subclass to implement customized functionality.
:param statement: The statement that the chat bot has produced in response to some input.
:param session_id: The unique id of the current chat session.
:returns: The response statement.
"""
return statement