Skip to content

Commit

Permalink
CommunicationBear: Return result
Browse files Browse the repository at this point in the history
  • Loading branch information
sils committed Feb 20, 2015
1 parent 60c5164 commit 44fbe09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bears/CommunicationBear.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
from coalib.bears.LocalBear import LocalBear
from coalib.results.Result import Result


class CommunicationBear(LocalBear):
def run_bear(self,
filename,
file,
user_input: str):
"""
Communicates with the user.
:param user_input: Arbitrary user input.
"""
self.debug_msg("Got '{ui}' as user input of type {type}.".format(
ui=user_input,
type=type(user_input)))

return [Result(message="A hello world result.",
origin=self.__class__.__name__,
file=filename)]

0 comments on commit 44fbe09

Please sign in to comment.