diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-16 20:13:22 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-16 20:13:22 +0200 |
| commit | 41068df7e4355df48fd71aebd76237a725ace91d (patch) | |
| tree | 45ad022c16322f88e4ea1d730fa183bd5048c2e9 | |
| parent | a6b13909b87983bf9dcc2eb22bcd83aaf7494eaf (diff) | |
| download | jasper-client-41068df7e4355df48fd71aebd76237a725ace91d.tar.gz jasper-client-41068df7e4355df48fd71aebd76237a725ace91d.zip | |
Style fix for salutation in jasper.py
| -rwxr-xr-x | jasper.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -66,7 +66,10 @@ class Jasper(object): self.mic = Mic(speak.newSpeaker(), stt.PocketSphinxSTT(), stt.newSTTEngine(stt_engine_type, api_key=api_key)) def run(self): - salutation = "How can I be of service, %s?" % self.config["first_name"] if 'first_name' in self.config else "How can I be of service?" + if 'first_name' in self.config: + salutation = "How can I be of service, %s?" % self.config["first_name"] + else: + salutation = "How can I be of service?" self.mic.say(salutation) conversation = Conversation("JASPER", self.mic, self.config) |
