diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-07-05 09:58:14 -0700 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-07-05 09:58:14 -0700 |
| commit | ea082f844a6748141aa61143421e4e9d0cc19bda (patch) | |
| tree | f96c16571e56674cd0208ad2fab308cd9ff49c9d /client/main.py | |
| parent | 32c07f1c4d08710c8ce7a80fb94c5fe75b616d92 (diff) | |
| parent | 9a4ae0f32f1aa422264eab55c88304b04aae50d5 (diff) | |
| download | jasper-client-ea082f844a6748141aa61143421e4e9d0cc19bda.tar.gz jasper-client-ea082f844a6748141aa61143421e4e9d0cc19bda.zip | |
Merge pull request #97 from dag0310/master
Added personalized greeting
Diffstat (limited to 'client/main.py')
| -rw-r--r-- | client/main.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/main.py b/client/main.py index c5805c4..0b29c75 100644 --- a/client/main.py +++ b/client/main.py @@ -23,7 +23,10 @@ if __name__ == "__main__": mic = Mic("languagemodel.lm", "dictionary.dic", "languagemodel_persona.lm", "dictionary_persona.dic") - mic.say("How can I be of service?") + addendum = "" + if 'first_name' in profile: + addendum = ", %s" % profile["first_name"] + mic.say("How can I be of service%s?" % addendum) conversation = Conversation("JASPER", mic, profile) |
