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

20 lines
475 B
Python

from __future__ import unicode_literals
from ..conversation import Statement
from . import InputAdapter
from ..utils import input_function
class TerminalAdapter(InputAdapter):
"""
A simple adapter that allows ChatterBot to
communicate through the terminal.
"""
def process_input(self, *args, **kwargs):
"""
Read the user's input from the terminal.
"""
user_input = input_function()
return Statement(user_input)